• edited by
733 views

1 Answer

3 3 votes

scanf returns how many inputs you provided

you are providing one input ===> printf prints 1 as output

 

if your statement is like this printf("%d", scanf("%d %d",&i,&j)); ===> o/p is 2

Position:
Show:

Related questions

–1 –1 vote
0 0 answers
465
465 views
Avik Chowdhury asked Jun 28, 2018
465 views
If two same name variable is created in two different C programs and if that two program run simultaneously then the address of that same name variable in both the progra...
0 0 votes
0 0 answers
966
966 views
srestha asked Mar 5, 2019
966 views
#include <stdio.h int main(void) { char s1[15]="SREE"; char s2[10]="ALL THE BEST"; strcpy(s2,s1); printf("\n%s",s2); return 0; }1)How s2 will contain a string of size 12,...
2 2 votes
0 0 answers
3.1k
3.1k views
srestha asked Mar 5, 2019
3,076 views
What will be output of the program?int d=0; int f(int a,int b){ int c; d++; if(b==3) return a*a*a; else{ c=f(a,b/3); return(c*c*c); } } int main(){ printf("%d",f(4,81)); ...
3 3 votes
0 0 answers
838
838 views
Asim Abbas asked Jan 11, 2018
838 views
Answer of this question is given as (C), but I am not able to get it how. Can any1 please explain this?