Sail E0 Webinar
Question
What will be the output of the program ?
#include
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);
}
Options:
A .  3, 2, 15
B .  2, 3, 20
C .  2, 1, 15
D .  1, 2, 5
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers