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



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