R
Q. What will be the output of this code?
void main() { int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here }
scanf returns number of items successfully read and not 1/0. Here 10 is given as input which should have been scanned successfully. So number of items read is 1.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. When all cases are unmatched which case is matched in a switch statement?
Q. Union differs from structure in the following way
Q. Which of the following is correct Associativity for == operator?
Q. What is the output of C Program?
Q. Which is the correct syntax to declare a file pointer in C?
Q. The size of the following union, where an int occupies 4 bytes of memory is
Discusssion
Login to discuss.