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



CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz