edited by
318 views

1 Answer

3 votes
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

Related questions

2 votes
2 votes
0 answers
3
srestha asked Mar 5, 2019
1,148 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 votes
3 votes
0 answers
4
Asim Abbas asked Jan 11, 2018
439 views
Answer of this question is given as (C), but I am not able to get it how. Can any1 please explain this?