What will the output of the following C code be? #include stdio.h> int main() j = 10; printf(" percent dn", j++); return 0;
A. 10
B. 11
C. Compile time error
D. 0
Answer:C
What will the output of the following C code be? #include stdio.h> int main() j = 10; printf(" percent dn", j++); return 0;
A. 10 B. 11 C. Compile time error D. 0
Explanation: Variable j is not defined. Output: $ cc pgm3.c pgm3.c: In function main': pgm3.c:4: error: 'j' undeclared (first use in this function) pgm3.c:4: error: (Each undeclared identifier is reported only once pgm3. c:4: error: for each function it appears in.)