單項選擇題下面程序中,合法的選項是()。

A.<include <stdio.h>int main(){printf("hello world\n");return 0;}
B.<include <stdio.h>int man(){printf("hello world\n");return 0;}
C.<include <stdio.h>int main(){printf("hello world\n")return 0;}
D.<include <stdio.h>int main(){print("hello world\n");return 0;}


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題假設(shè)有程序段:int k=0;while(k=1)k++;while語句的循環(huán)次數(shù)是()。

A.無限次
B.有語法錯,不能執(zhí)行
C.一次也不執(zhí)行
D.執(zhí)行1次

2.單項選擇題在C語言中,關(guān)于變量的作用域,下列描述中錯誤的是()。

A.局部變量只在整個函數(shù)的運行周期中有效
B.全局變量的作用域為整個程序的運行周期
C.當(dāng)全局變量與局部變量重名時,局部變量會屏蔽掉全局變量
D.全局變量會覆蓋掉所有與它重名的局部變量