TCS Company undefined

What will be the output of the program ?
#include
int 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);
return 0;
}
1. 2, 1, 15
2. 1, 2, 5
3. 3, 2, 15
4. 2, 3, 20

Read Solution (Total 7)

TCS Other Question

In C, if you pass an array as an argument to a function, what actually gets
passed?
1.Value of elements in array
2.First element of the array
3.Base address of the array
4.Address of the last element of array
Is there any difference int the following declarations?
int fun(int arr[]);int fun(int arr[2]);
A.Yes
B.No