Sports GK Questions and Answers 2024 (Latest Updated)

Awards & Honours GK Questions 2024 (Latest Updated)

Question

If the following loop is implemented

void main()
{ 
	int num = 0;
	do
	{
		- - num;
		printf (“%d”, num);
		num ++;
	}
	while (num >=0);	
}
A A run time error will be reported
B The program will not enter into the loop
C The loop will run infinitely many times
D There will be a compilation error reported
Answer & Explanation
Option: [C]
Advertisement
Article and Schedule Quiz Start Test!
DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Random GK Questions

Assam Direct Recruitment Test Series

Computer Science Topics