Report Bug

Qus

What will be the output of the following program?

main()
{ 
	int x = 5;
	while ( x = = 1)
		x = x -1;
	printf ( “ %d\n”, x);
}
Qus

निम्नलिखित प्रोग्राम का आउटपुट क्या होगा?

main()
{ 
	int x = 5;
	while ( x = = 1)
		x = x -1;
	printf ( “ %d\n”, x);
}


A. 5
B. 4
C. 0
D. syntax error


Solution
A. 5



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad