Report Bug

Qus

What will be output after compilation and execution of the following code?

int main()
{
	int array[3]={5}; int i;
	for (i=0;i<=2;i++)
	printf("%d ",array[i]);
	return 0;
}
Qus

निम्नलिखित कोड के संकलन और निष्पादन के बाद आउटपुट क्या होगा?

int main()
{
	int array[3]={5}; int i;
	for (i=0;i<=2;i++)
	printf("%d ",array[i]);
	return 0;
}



A. 5 garbage garbage
B. 5 0 0
C. 0 0 0
D. 5 5 5


Solution
B. 5 0 0



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