...
Programming
October 20, 2023
Programming
October 20, 2023
Programming
October 20, 2023
Programming
October 20, 2023

Programming

Question 348
What is the output of following C program?

# include

main( )

{

int i, j, x = 0;

for (i = 0; i <5; ++i)

for (j = 0; j<i; ++j)

{

x + = (i + j – 1);

break;

}

printf (“%d”,x) ;

}

A
6
B
5
C
4
D
3
Question 348 Explanation: 
Correct Answer: A
Question 348 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!!