问题
有以下程序 main() { int m=0256,n=256; printf("%o %o\n",m,n); } 程序运行后的输出结果是
有以下程序
main()
{
int m=0256,n=256; printf("%o %o\n",m,n);
}
程序运行后的输出结果是
A、0256 0400 B、0256 256 C、256 400 D、400 400
您可能感兴趣的试题
-
在下列程序段中,枚举变量 c1 的值是( )。 enum color { red,yellow,blue=4,green,white}c1; c1=yellow; c1=white;
在下列程序段中,枚举变量 c1 的值是( )。 enum color { red,yellow,blue=4,green,white}c1; c1=yellow; c1=white;A 1 B 3 C 5 D 6...
查看答案 -
有以下说明和定义语句struct student { int age; char num[8];}; struct student stu[3]={{20,"200401"},{21,"200402"},{10\9,"200403"}}; struct student *p=stu; 以下选项中引用结构体变量成员的表达式错误的是
有以下说明和定义语句struct student { int age; char num[8];}; struct student stu[3]={{20,"200401"},{21,"200402"},{10\9,"200403"}}; struct student *p=stu; 以下选项...
查看答案 -
设有以下语句typedef struct S { int g; char h;} T; 则下面叙述中正确的是
设有以下语句typedef struct S { int g; char h;} T; 则下面叙述中正确的是A) 可用 S 定义结构体变量 B)可以用 T 定义结构体变量C)S 是 struct 类型的变量 D)T 是 struct S 类型的变量...
查看答案 -
下列说法不正确的是( )。 A 主函数 main 中定义的变量在整个文件或程序中有效 B 不同函数中,可以使用相同名字的变量 C 形式参数是局部变量 D 在一个函数内部,可以在复合语句中定义变量,这些变量只在本复合语句中有效
下列说法不正确的是( )。A 主函数 main 中定义的变量在整个文件或程序中有效B 不同函数中,可以使用相同名字的变量C 形式参数是局部变量D 在一个函数内部,可以在复合语句中定义变量,这些变量只在本复合语句中有效...
查看答案 -
以下程序的输出结果为( )。 main( ) { char s1[40]="country",s2[20]="side"; int i=0,j=0; while(s1[i]!='\0') i++; while(s2[j]!='\0') s1[i++]=s2[j++]; s1[i]=0; printf("%s\n",s1); }
以下程序的输出结果为( )。 main( ) { char s1[40]="country",s2[20]="side"; int i=0,j=0; while(s1[i]!='\0') i++; while(s2[j]!='\0') s1[i++]=s2[j++]; s1[i]=0; printf...
查看答案
