单项选择题
设有定义:long x= -123456L;,则以下能够正确输出变量x值的语句是( )。
A.printf("x=%d\n",x);
B.printf("x=%1d\n",x);
C.printf("x=%8dL\n",x);
D.printf("x=%LD\n",x);
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序void change(int k[]){k[0]=k[5];}main(){int x[10]={l,2,3,4,5,6,7,8,9,10},n=0;while(n<=4) {change(&x[n]);n++;}for(n=0;n<5;n++)prinff( %d ,x[n]);printf( \n );}程序运行后输出的结果是【 】。
A.6 7 8 9 10
B.1 3 5 7 9
C.1 2 3 4 5
D.6 2 3 4 5
点击查看答案&解析
单项选择题
以下选项中不能正确把c1定义成结构体变量的是( )。
A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B.struct color cl { int red; int green; int blue; }
C.struct color { int red; int green; int blue; } cl;
D.struct { int red; int green; int blue; } cl;
点击查看答案
相关试题
有以下程序main( ){ int t=1,i=...
下面程序的运行结果是:【 】。#include...
以下程序的功能是调用函数fun计算:m=1-...
下面程序的运行结果是:【 】int f( in...
设有定义:int n,* K=&n;以下语句将...