GeeksforGeeks » C/C++ Programming Questions
c code
(3 posts)-
#include<stdio.h>
main(){
int a[]={0,1,2,3,4,5,6,7,8,9,10,11,12,13},b=10,i=0;
b=a[i++ + a[++i]];
b=a[++i+a[++i + a[++i]]];
printf("%d %d",b,i);getch();
}; -
undefined behavior.
-
Output is always 13 5
Reply
You must log in to post.