in Programming in C
449 views
1 vote
1 vote
Please tell the output with explanation!

#include<stdio.h>

int main()

{

int a,b;

printf("%d ",12);

printf("%d ",143);

printf("%d ",scanf("%d%d",&a,&b));

}
in Programming in C
449 views

1 comment

On successfully read, scanf return the no. of the successful read.

you can see this: http://www.geeksforgeeks.org/g-fact-10/

1
1

2 Answers

1 vote
1 vote
The output would be : 12 143 and 2 (the no of integers read).

1 comment

Thanks! :)
0
0
0 votes
0 votes
I think Right answer is 12143 ....

Related questions