What will be the output of the program? #include<stdio.h> void main(){ int a[5]={5,1,15,20,25}; int i,j,m; i=++a[1]; j=a[1]++; m=a[i++]; printf("%d…

What will be the output of the program?

#include<stdio.h>
void main(){
    int a[5]={5,1,15,20,25};
    int i,j,m;
    i=++a[1];
    j=a[1]++;
    m=a[i++];
    printf("%d, %d, %d",i,j,m);
}

From the TSS Assistant Programmer 2022 – Written exam, question 2 of 7.

More from this paper