Report Bug

Qus

What will be the output of the following code?

int main()
{
	int a=5;
	while(a=123)
	{
		printf("RABBIT\n");
	}
	printf("GREEN");
	return 0;
}
Qus

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

int main()
{
	int a=5;
	while(a=123)
	{
		printf("RABBIT\n");
	}
	printf("GREEN");
	return 0;
}


A. RABBIT is printed unlimited number of times
B. RABBIT GREEN
C. Compiler error
D. GREEN


Solution
A. RABBIT is printed unlimited number of times



Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad