网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
以下程序(程序左边的数字为附加的行号)______。1include2include3main()4{ cha

以下程序(程序左边的数字为附加的行号)______。1#include<str.h>2#include<stdio.h>3main()4{ char s[]="string";5puts(s);6strcpy(s,"hello");7printf("%3s\n"s);}

A.没有错

B.第1行有错

C.第6行有错

D.第7行有错


参考答案

更多 “ 以下程序(程序左边的数字为附加的行号)______。1include2include3main()4{ cha 以下程序(程序左边的数字为附加的行号)______。1#include<str.h>2#include<stdio.h>3main()4{ char s[]="string";5puts(s);6strcpy(s,"hello");7printf("%3s\n"s);}A.没有错B.第1行有错C.第6行有错D.第7行有错 ” 相关考题
考题 QBASIC程序中,行号是由数字和字母组成。()

考题 以下程序(程序左边的数字为附加的行号)______。1 include2 include3 main()4 { 以下程序(程序左边的数字为附加的行号)______。 1 #include<str.h> 2 #include<stdio.h> 3 main() 4 { char s[]="string"; 5 puts(s); 6 strcpy(s,"hello"); 7 printf("%3s\n",s);}A.没有错B.第1行有错C.第6行有错D.第7行有错

考题 以下程序(程序左边的数字为符加的行号)。1include2include3main()4{char s[]=" 以下程序(程序左边的数字为符加的行号)。 1#include<str.h> 2#include<stdio.h> 3main() 4{ char s[]="string"; 5puts(s); 6strcpy(s,"hello"); 7printf("%3s\n",s);}A.没有错B.第1行有错C.第6行有错D.第7行有错

考题 有以下程序 include main() { char a=4; printf("%d/n,a=a 有以下程序 #include <stdio.h> main() { char a=4; printf("%d/n,a=a<<1); } 程序的运行结果是______。A.40B.16C.8D.4

考题 以下程序(程序左边的数字为附加的行号)______。1include2include3main()4{char 以下程序(程序左边的数字为附加的行号)______。 1#include<str.h> 2#include<stdio.h> 3main() 4{ chars[]="string"; 5puts(s); 6strcpy(s,"hello"); 7printf("%3S\n",s);}A.没有错B.第1行有错C.第6行有错D.第7行有错

考题 数字字符'0'的ASCII值为48,若有以下程序:include main( )char a='1',b ='2';printf( " 数字字符'0'的ASCII值为48,若有以下程序: #include <stdio.h> main( ) char a='1',b ='2'; printf( "% c,",b + + ); printf(" % d \n" ,b - a); } 程序运行后的输出结果是( )。A.3,2B.50,2C.2,2D.2,50

考题 下面程序()。每行程序前面的数字表示行号) 1 #include <stdio.h> 2 int main(void) 3 { 4 int a[3]={0}; 5 int i; 6 for(i=0;i<3;i++) scanf("%d",a[i]); 7 for(i=1;i<3;i++) a[0]=a[0]+a[i]; 8 printf("%dn",a[0]); 9 return 0; 10 }A.第4行有错误B.第8行有错误C.第6行有错误D.没有错误

考题 5、下面的程序中()错误(每行程序前面的数字是行号)。 1 #include<stdio.h> 2 main() 3 { 4 float a[3]={0.0}; 5 int i; 6 for(i=0;i<3;i++) scanf("%d",a[i]); 7 for(i=1;i<3;i++)a[0]=a[0]+a[i]; 8 printf("%fn",a[0]); 9 }A.没B.第4行C.第6行D.第8行

考题 4、数字字符0的ASCI值为48,若有以下程序 #include "stdio.h" int main() {char a= '1' , b='2'; printf("%c," , b+1); printf("%d\n" ,b-a); return 0;} 程序运行后的输出结果是()A.3,1B.50, 2C.3,2D.2,50