What is the use of printf() and scanf() functions?



What is the use of printf() and scanf() functions?..

Answer / Rishabh Soti

"printf() function is used for outputting data to standard output. scanf() function is used for inputting data from standard input."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the scope of local variable in c?

1 Answers  


#include<stdio.h> int main( ) { Int a=300, b, c; if(a>=400) b=300; c=200; printf(“%d%d ”, b, c); return0; }

1 Answers  


const char * char * const What is the differnce between the above tow?.

6 Answers   Ramco, TCS,


What is time complexity c?

1 Answers  


How main function is called in c?

1 Answers  


Can a variable be both static and volatile in c?

1 Answers  


What are the difference between a free-standing and a hosted environment?

1 Answers   Infogain,


consider the following structure: struct num nam{ int no; char name[25]; }; struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}}; ..... ..... printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1); What does the above statement print? a.8,9 b.9,9 c.8,8 d.8,unpredictable value

4 Answers   TCS,


diff. between *p and **p

3 Answers  


difference between malloc and calloc

3 Answers   HCL, Wipro,


code for replace tabs with equivalent number of blanks

1 Answers   Bosch,


void main() { int a=1; printf("%d %d %d",a,++a,a++); } the output is supposed to be 1 2 2....but it is 3 3 1 this is due to calling conventions of C. if anyone can explain me how it happens?

7 Answers  


Categories