100+ câu trắc nghiệm Lập trình C/C++ có đáp án - Phần 2

void main(){int x = 0;switch(x){case 1: printf( "One" );case 0: printf( "Zero" );case 2: printf( "Hello World" );}}What is the result of the following code?

7/25

void main()

{

int x = 0;

switch(x)

{

case 1: printf( "One" );

case 0: printf( "Zero" );

case 2: printf( "Hello World" );

}

}

What is the result of the following code?

One

Zero

Hello World

Zero Hello World

Giải thích

Chọn đáp án D