...
Programming-for-Output-Problems
September 30, 2023
Data-Structures
September 30, 2023
Programming-for-Output-Problems
September 30, 2023
Data-Structures
September 30, 2023

Programming-for-Output-Problems

Question 8
The output of the following code is:
int main()
{
static int x[ ]={1,2,3,4,5,6,7,8}
int i;
for(i=2;i<6;++i)
x[x[i]]=x[i];
for(i=0;i<8;++i)
printf(“%d”,x[i]);
Return 0;
}
A
12244668
B
11335578
C
12335578
D
12343676
Question 8 Explanation: 

Correct Answer: C
Question 8 Explanation: 

Leave a Reply

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