Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 What will be the output of the program if value 25 given to scanf()? #include<stdio.h> int main() { int i; printf("%d\n", scanf("%d", &i)); return 0; } ?->(Show Answer!)
1. What will be the output of the program if value 25 given to scanf()? #include<stdio.h> int main() { int i; printf("%d\n", scanf("%d", &i)); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.01 pm
The scanf function returns the number of input is given. printf("%d\n", scanf("%d", &i)); The scanf function returns the value 1(one). Therefore, the output of the program is '1'.