kaldin

  • Login

C Programming


2) What will be the output of the program?

#include<stdio.h>
int main()
{
    int i=2;
    printf("%d, %d\n", ++i, ++i);
    return 0;
}
  • A)

  • B)

  • C)

  • D)

Previous Next
Show Answer:
Show Answer


More Question
A preprocessor directive is a message from programmer to the preprocessor.
How many times the while loop will get executed if a short int is 2 byte wide #includestdio.hint main() int j=1; while(j = 255) printf(c d\n, j, j); j++; return 0;
Point out the error in the following program. #includestdio.hint main() struct emp char name[20]; float sal; ; struct emp e[10]; int i; for(i=0; i=9; i++) scanf(s f, e[i].name, &e[i].sal); return 0;
If char=1, int=4, and float=4 bytes size, What will be the output of the program #includestdio.hint main() char ch = 'A'; printf(d, d, d, sizeof(ch), sizeof('A'), sizeof(3.14f)); return 0;
Point out the error, if any in the program. #includestdio.hint main() int P = 10; switch(P) case 10: printf(Case 1); case 20: printf(Case 2); break; case P: printf(Case 2); break; return 0;