...
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 18
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 18 Explanation: 

Correct Answer: C
Question 18 Explanation: 

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!