Report Bug

Qus

What will be output if you will compile and execute the following C code?

int main(){
	int check=2;
	switch(check){
	case 1: printf("D.W.Steyn");
	case 2: printf(" M.G.Johnson");
	case 3: printf(" Mohammad Asif");
	default: printf(" M.Muralidaran");
	}
	return 0;
}
Qus

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

int main(){
	int check=2;
	switch(check){
	case 1: printf("D.W.Steyn");
	case 2: printf(" M.G.Johnson");
	case 3: printf(" Mohammad Asif");
	default: printf(" M.Muralidaran");
	}
	return 0;
}



A. M.G.Johnson
B. M.Muralidaran
C. M.G.Johnson Mohammad Asif M.Muralidaran
D. Compilation error


Solution
C. M.G.Johnson Mohammad Asif M.Muralidaran



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