首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下四个程序中,完全正确的是( )。
以下四个程序中,完全正确的是( )。
admin
2021-04-28
28
问题
以下四个程序中,完全正确的是( )。
选项
A、#include
B、#include
main(); main()
\*/programming/*/ \*programming*/
prinff(“programming!\n”);}prinff(“programming!\n”);}
C、#include
D、include
main() main()
\*,*programming*,*, \,*programming*/
prinff(”programming!\n”);}printf(”programming!\n”);}
答案
B
解析
c语言中注释语句的注释方法是:/*注释内容*/或//注释一行。所以A与C错误,D选项中预编译命令include
前丢掉了“#”号。所以选择B。
转载请注明原文地址:https://www.kaotiyun.com/show/5Ftp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
若有以下程序#includeint*f(int*s,int*t){int*k;if(*s
有以下程序#include<stdio.h>intfun(chars[]){intn=0;while(*s<=’9’&&*s>=’0’){n=10*n+*s-0’;s++;}return(n];}main(){charsi10]={
下列叙述中错误的是()。
软件按功能可以分为:应用软件、系统软件和支撑软件(或工具软件)。下面属于系统软件的是
有以下程序#includevoidfun(int*x,ints,inte){inti,j,t;for(i=s,j=e;i
有以下程序#includevoidfun(intx,inty,int*c,int*d){*c=x+y;*d=x-y;}main(){inta=4,b=3,c=0,d=0;fun(a,b
以下选项中可用作C程序合法实数的是
有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数)#include#includemain(){chara[10]="abc",b[10]="012",c[10]="xyz";
对长度为n的线性表排序,在最坏情况下,比较次数不是n(n-1)/2的排序方法是
下列数据结构中,能用二分法进行查找的是
随机试题
RobertSpring,a19thcenturyforger,wassogoodathisprofessionthathewasabletomakehislivingfor15yearsbyselling
A、计划B、分析C、执行D、检查E、处理PDCA管理循环中,A指的是
治疗咽喉肿痛,口舌生疮,宜选用
肝硬化病人出现全血细胞减少,最主要的原因是
学生练钢琴练到一定阶段,感觉进步似乎停止了。这种现象属于技能学习中的()。
IfIaskyouwhatconstitutes"bad"eating,thekindthatleadstoobesityandavarietyofconnecteddiseases,you’relikelyto
Theordeals(神判法)wereappealsthesupernaturaltodeterminetheguiltorinnocenceoftheaccused.Theywere【21】______theJud
Theprofessionalsthinkthat______.Someexpertsthinkthatmostpeoplewhoareattendingameeting______.
【S1】【S3】
Drunkendriving—sometimescalledAmerica’ssociallyacceptedformofmurder—hasbecomeanational【B1】______.Everyhourofever
最新回复
(
0
)