What will be the output?
#include
int main()
{
int arr[]={1,2,3,4,5,6};
int i,j,k;
j=++arr[2];
k=arr[1]++;
i=arr[j++];
printf ("i=%d,j=%d,k=%d",i,j,k);
return 0;
}
A)i=5,j=5,k=2
B)i=6,j=5,k=3
C)i=6,j=4,k=2
D)i=5,j=4,k=2
Answers
Answered by
2
Answer:
A) i=5,j=5,k=2
Explanation:
You need to type <stdio.h> just after #include otherwise it'll show error.
I just run it myself and then answering you. So its 100% correct answer.
I hope it helps you.
Please Mark this Answer as Brainliest Answer.
Thanks❤️
Similar questions
English,
5 months ago
Math,
5 months ago
Math,
9 months ago
Political Science,
1 year ago
Biology,
1 year ago