Computer Science, asked by ganjulashriraj9899, 3 months ago


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);

Answers

Answered by farhan8346
3

Answer:

3, 2, 15

Explanation:

i = ++a[1]

i = 3

j = a[1]++

j = 2

m = a[i++]

m = 15

Similar questions