Multiple choice

What would be the output of the following?

void main() { int a=10,b; b=a++ + ++a; printf("%d %d %d %d",b,a++,a,++a); }What would be the output of the following?

void main() { int i=7; printf("%old %old %old %old",i,i++,i--,i++); getch(); }

  1. old old old old

  2. 7ld 8ld 7ld 8ld

  3. 10ld 7ld 10ld 7ld

  4. Error

Reveal answer Fill a bubble to check yourself
C Correct answer