Given in the following program:

		int x=49;
		for (;x;)

What will be the output of the program?

A 49
B 0
C -49
D none of these
Answer & Explanation
Option: [B]

For all non-zero values of x the for will execute. x is decremented from 49 to 0. Hence 0 is printed in the screen.

current affairs 2021 pdf plan

Current Affairs MCQs

State-wise Current Affairs

Month-wise Current Affairs 2021

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test