What is the purpose of Scanf Print, getchar, putchar,
function?

Answers were Sorted based on User's Feedback



What is the purpose of Scanf Print, getchar, putchar, function?..

Answer / vignesh1988i

scanf() is used to get the input from the user using the compailer.

printf() is used to output the messages given by the user in the output screen

getchar() is used to get a single character from the user.....

putchar() is used to output a single character and echo's in the output screen

Is This Answer Correct ?    94 Yes 7 No

What is the purpose of Scanf Print, getchar, putchar, function?..

Answer / bhushan deshmukh

C language is procedural language. It contain's system
function for I/O, These function useing in Input and
Output....

1. Scanf :- function using for formated input.. with
showing some formated output message...

2. Printf :- Function using for display formated output on
console...
3. Getchar() :- using for Get a only one character at one
time...

4. Putchar() :- Using for a single character without
formated...

Is This Answer Correct ?    40 Yes 6 No

What is the purpose of Scanf Print, getchar, putchar, function?..

Answer / kumutha

sacnf()- input data can be entered into the computer using
the standard input'c' library function........

printf()- output data or result of an operation can be
displayed from the computer to a standard output device
using the library function........

getchar()- single character can be given to the computer
using 'c' input library function........

putchar()- used to display one character at a time on the
standard output device.........

Is This Answer Correct ?    29 Yes 3 No

Post New Answer

More C Interview Questions

Can we compile a program without main() function?

1 Answers  


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

1 Answers  


Why is void main used?

1 Answers  


C program to find frequency of each character in a text file?

6 Answers  


Who developed c language and when?

1 Answers  


How can I do peek and poke in c?

1 Answers  


how can i get the string which is having two spaces at the end.suppose the string is "Hello World ".Now at the end i have two spaces.i need to print with that spaces .

1 Answers  


An entire structure variable can be assigned to another structure variable if __________

3 Answers   Sasken, TCS, Tech Mahindra, Wipro,


How do you list files in a directory?

1 Answers  


Convert the following expression to postfix and prefix (A+B) * (D-C)

3 Answers   Satyam,


get any number as input except 1 and the output will be 1.without using operators,expressions,array,structure.don't print 1 in printf statement

3 Answers  


What is the sizeof () a pointer?

1 Answers  


Categories