Skip to main content

Basic Input / Output Function used in 'C' Language


Basic Input / Output Function used in 'C' Language

         We know that the c language is accompanied by a collection of library functions, which includes a number of input/output functions.these functions allow the transfer of information between the computer and the input/output devices.
              There are multiple input/output functions in 'C'. Main Two of them are as follows:-

 Input function: -
     
         Data (values) can be accepted in the program by means of some functions, which are already defined in the standard c library. The most common function is the scanf() function.

     Scanf() function: -

          Data can be entered into the running program from a input device(keyboard).The input will be be taken by the c library functions scanf(). This function can be used to take input in which is of type number (int,long,float or double), character, string or combination of both.

General syntax of scanf() function is as: -

scanf(“Format Specifier”,&veriable1, &variable,. . . ,&veriable_n);

Output function: -

        Data can be outputted from the computer onto a output device known as monitor using function printf().

Printf() function :-

Printf() function can be used to display some text as output on the monitor.

General syntax of printf() function is as:-

printf(“message to be displayed”);

The message (output) which you want to display should be enclosed in double quotes. Printf() function will print the enclosed message on the screen.






If You like our Blog do subscribe 

Comment down Below 

Subscribe to our Channel - 

Comments

Popular posts from this blog

  Oasis Infobyte Internship Experience      This blog is about my experience of Oasis Infobyte internship. I received an offer letter from Oasis infobyte for java development internship. I was very happy because of this opportunity. The experience with the oasis infobyte has been great. I have learned a lot from this internship. And got to know the new technologies. Happy to work and learn with Oasis Infobyte.It was great experience. If you are interested in this internship the check out their official website  here  :  http://oasisinfobyte.in/ Thank you. 

Mobile Application Development Answers | Android App Development

Title M Mobile Application Development- Experiment No 1 Answers         Here we have given you the pdf copy of answers of Maharashtra State Board of Technical Education (MSBTE) , Diploma, 6 th Semester - I scheme, Mobile Application Development(22617) - Experiment No 1 from Laboratory manual.       This file include all the questions and their answers as per MSBTE guideline,  All the questions included in the file are as follows:     IX. Practical Related Questions. Q1. List different Android O.S. versions. Q2 . State characteristics of android operating system. X. Exercise. Q1. Draw the architectural diagram of Android operating system. Q2. Differentiate between Windows operating system and Android operating system.     Answers of above questions are given in the file, you can download the file by just clicking the link below. Mobile Application Development(22617) Experiment No 1 Answers  

Simple C program to perform four basic Arithmetic operations Turbo c++. | SM53 Just Coding

           A very Simple program to perform arithmetic operations in single C program.         How to create simple C program to perform four basic Arithmetic operations in Turbo c++. | SM53 Just Coding.            Hi friends, it is an simple c program to calculate Addition/Subtraction/Multiplication/Division using ' Switch-case ' statement. It has a menu and different option to perform. We have used simple logic in this program. Subscribe my channel for more amazing videos Like share the video in your friend. And ask any question down below.  YouTube Video link:-            _https://www.youtube.com/watch?v=5Qb5S4NTLII&feature=youtu.be  Subscribe my channel for more. Comment down if you want to get more information about programing and programing languages. Engineers World. Prog...