Quiz-6

Choose one of the following choices in relevance to the output of the following code.

#include<stdio.h>
int main()
{
      int a[20];
      int i=15;
      printf("a[%d]=",i++);
      printf("%d",++i);
      return 0;
}

1) Compile error (or) execution stops.
2) a[15]=17
3) a[16]=17
4) a[16]=16
5) a[15]=16
6) None of the above.

For Answer and Explanation visit our Facebook fan page here
 

No comments: