#include<stdio.h> void main() { int a=10,b=20,c=30;
printf("%d",scanf("%d%d%d",&a,&b,&c)); }
what is the output for this?
Answer Posted / sorab
IT will print 3 becoz in the inner statement of printf()you have scanf() statement .scanf() will take the 3 inputs from user and after that it will return 3 to printf()and 3 display on screen
printf("%d",scanf("%d%d%d%d",&a&b&c));
it will display 4 on screen ...
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Can we declare variable anywhere in c?
How can I find the modification date and time of a file?
What is variable declaration and definition in c?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What does printf does?
Write a program of advanced Fibonacci series.
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
How many identifiers are there in c?
What is enumerated data type in c?
When should you not use a type cast?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Explain how can I pad a string to a known length?
What is structure in c language?
How can I prevent another program from modifying part of a file that I am modifying?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none