700+ câu trắc nghiệm Ngôn ngữ lập trình C có đáp án - Phần 6

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

7/25

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

One

Zero

Hello World

ZeroHello World

Giải thích

Chọn đáp án A