开放大学在线学习搜题
当前位置:首页 > 学习题库 > C语言程序设计

问题

以下程序段的运行结果是( )。 int s=15; switch(s/4) {case 1: printf(“One “); case 2: printf(“Two “); case 3: printf(“Three “); default: printf(“Over “);}

发布时间:2025-11-22   作者:广东开放大学   浏览:0

以下程序段的运行结果是(    )。

int s=15;

switch(s/4)

{case 1:   printf(“One “);

case 2:   printf(“Two “);

case 3:   printf(“Three “);

default:   printf(“Over “);}

 

A:Three Over

B:One Two Three Over

C:Over

D:Three