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






Report Bug