555 views
1 1 vote
Who calls the printf and scanf function in c and who receives the value returned by these functions??

1 Answer

0 0 votes

printf and scanf funtions are pre defined in c and the functions or statements that are predefined are embedded in some header files.printf and scanf are embedded in stdio.h header file.Header file is nothing but a library where the code of predefined statements or function's codes are stored.So when we write printf/scanf stdio.h header file automatically run the code of printf/scanf.Main function receives the value written by printf and scanf.

Position:
Show:

Related questions

0 0 votes
1 1 answer
1.0k
1.0k views
ranarajesh495 asked Oct 9, 2018
1,033 views
If we are taking character as input then how we can check the character against a a range of numbers. Please explain
1 1 vote
0 0 answers
646
646 views
KashishNarang asked Aug 23, 2018
646 views
Output will be-int main(){ int a =0,b=1,c=3:*((a)?&b&:&a)=a ? b : c;printf("%d %d%d ", a,b,c);}
4 4 votes
1 1 answer
2.1k
2.1k views
Rudra Pratap asked Jun 25, 2017
2,090 views
#include<stdio.h int main() { int i = 0x1 << sizeof(int)*8-1; printf("\n%x",i); i = i > sizeof(int)*8-1; printf("%d",i); }Find the output ?
0 0 votes
1 1 answer
1.3k
1.3k views
Rudra Pratap asked Jun 25, 2017
1,328 views
#include<stdio.h>int main(){ int x=20; printf("%d %d ",x ,++x);}unable to understand how it prints the output. plz help