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  

Introduction to 'C' Programming language.

Introduction to C Programming language              C is a high level,general purpose,structured programming language.instructions of c consist of terms that are very closely same to algebraic expressions,consisting of certain English keywords.  By design, C provides constructs that map efficiently to typical  machine instruction  and has found lasting use in applications previously coded in  assembly language . Such applications include  operating systems  and various  application software  for computers, from  supercomputers  to  embedded systems .              C was originally developed at   Bell Labs  by  Dennis Ritchie  with their colleague Ken Thompson between 1972 and 1973 to make utilities running on  Unix . Later, it was applied to re-implementing the kernel of the Unix operating system. During the 19...