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. Which of the following cannot be used as LHS of the expression in for (exp1 ;exp2 ; exp3) ?
Q. What will be the result of the following code snippet?
Q. What is the output of C Program.?
Q. perror( ) function used to ?
Q. A bit field is a set of adjacent bits whose size can be from _________ bits in length
Q. What will be the output of the following code snippet?
Q. Which character always ends a statement?
Q. What will be the final values of i and j in the following C code?
Q. Functions in C can accept multiple parameters. True or False?
Discusssion
Login to discuss.