GkSeries.com

Q.

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]

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

Please share this page

Click Here to Read more questions

Teacher Eligibility Test