R
Q. What is the output of the following C program?
#include <stdio.h> int main() { printf("Hello World! %d \n", x); return 0; }
This results in an error because the variable x is used without prior declaration. The output is as follows: $gcc prog1.c pgm1.c: In function ‘main’: pgm1.c:4: error: ‘x’ undeclared (first use in this function) pgm1.c:4: error: (Each undeclared identifier is reported only once pgm1.c:4: error: for each function it appears in.)
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. If we do not explicitly assign values to enum names, the compiler by default assigns values to ?
Q. What is the correct syntax of if statement in C program?
Q. Which of the following correctly shows the hierarchy of arithmetic operations in C?
Q. Which option should be selected to work the following C expression?
Q. The ________ operator is true only when both the operands are true.
Q. What is the output of this program?
Q. What is the right way to access value of structure variable book{ price, page }?
Q. A recursive function in C ___
Q. Which of the following correctly represents a long double constant?
Discusssion
Login to discuss.