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

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  

IFYX Keyboard Cover / Protector

A IFyx Laptop Keyboard Cover for protection From water If you want to buy a protective cover to protect your Laptop Keyboard you must visit IFYX STORE  to buy these amazing Keyboard covers.      As we know now a days keyboards of the laptops are not same in design where some keys are less or more than other or layout might change, so we would not be able to get proper keyboard cover for our laptops. the best example is Lenovo Legion 5 Series  .   But now if you want to buy perfect fitting keyboard cover for your laptop then you cant goto IFYX STORE and search for you model and you can easyly get perfect fit. Best things about IFYX STORE :  Durability. Perfect Cutout for each and every Key. Cheaper in price as compair to other keyboard covers.  So if you want to buy This Keyboard cover you can click the link given below and will be redirected to official website of IFYX STORE  :  Link :  https://ifyxstore.com/?ref=9ksd1e2tn9 If y...

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...