GeeksforGeeks » C/C++ Programming Questions

c code

(3 posts)
  • Started 1 year ago by chandrahasan1
  • Latest reply from chandrahasan1

Tags:

No tags yet.

  1. chandu
    Member
    Posted 1 year ago #

    #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();
    };

  2. Kapil
    guest
    Posted 1 year ago #

    undefined behavior.

  3. chandu
    Member
    Posted 1 year ago #

    Output is always 13 5


Reply

You must log in to post.

RSS feed for this topic