What will be the output of the following function?
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); }
Reveal answer
Fill a bubble to check yourself
What will be the output of the following function?
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); }