题目
第2题
下面的程序段,其运行结果是______。
char c[5]={'a', 'b','\0','c','\0'};
printf("%s",c);
第6题
运行下面的程序,输入字符串Microsoft Visual Studio,则程序的执行结果是()。 #include<stdio.h> main() {char Chr[20]; scanf("%s",&Chr); printf("%s\n”,Chr); }
A.Microsoft Visua1 Studio
B.M
C.Microsoft
D.MicrosoflVisualStudio
第7题
下面的程序的运行结果是__________
func main() {strs := []string{"one", "two", "three"}for _, s := range strs { go func() { time.Sleep(1 * time.Second) fmt.Printf("%s ", s) }()}time.Sleep(3 * time.Second)}
第8题
第9题
分析下面的C#代码,该程序的运行结果是()。classExample{staticvoidMain(stringQ
args){Console.WriteLine("/Looklikeacomment");}}
A.LookslikeA.comment
B./LookslikeA.comment
C.没有输出任何内容
D.编译错误
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!