Join our Telegram Channel

1000 POLITICAL SCIENCE MCQS | EBook
Get 22 nos. GK EBooks | Combo Pack
Current Affairs Monthly Magazine -Subscribe Now!
1000 BIOLOGY MCQS AND ANSWERS | EBook
1000 ECONOMICS MCQS FOR EXAMS | EBook
Mughal Empire MCQs | EBook
ECONOMIC GEOGRAPHY MCQs | EBook
350 MCQs ON INDIAN CONSTITUTION | EBook
GENERAL AWARENESS COMBO (6 EBOOKS)

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

Month-wise Current Affairs 2022

Category-wise Current Affairs

Jobs by Qualification

Free Mock Test