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

题目内容 (请给出正确答案)

设有定义:10ng x=-123456L,则以下能够正确输出变量x值的语句是( )。

A.printf("x=%d\n",x);

B.printf("x=%1d\n",x);

C.peintf("x=%8dL\n",x);

D.printf('x=%LD\n",x);


参考答案

更多 “ 设有定义:10ng x=-123456L,则以下能够正确输出变量x值的语句是( )。A.printf("x=%d\n",x);B.printf("x=%1d\n",x);C.peintf("x=%8dL\n",x);D.printf('x=%LD\n",x); ” 相关考题
考题 设有定义: float x=123.4567; ,则执行以下语句后的输出结果是 【 6 】 。printf("%f\n",(int)(x*100+0.5)/100.0);

考题 若变量均已正确定义并赋值,以下合法的 C 语言赋值语句是A ) x=y==5;B)x=n%2.5;C)x+n=I;D)x=5=4+1;

考题 以下程序运行时若要正确输出函数的入口地址和输入数的绝对值,应在程序空缺处填入的正确选项是 abs(int x) { if(x>=0)return x; else return-x;} main() { int y,z,(*p)(int x)=abs; scanf(" %d" ,y); z=( *p)(y); ——; }A.printf("%d%d\n",p,z)B.Printf("%d%d\n",p,z)C.printf("%d%d\n",*p,z)D.printf("%d%d\n",p,*z)

考题 设变量均已正确定义并且赋值,以下与其他三组输出结构不同的一组语句是()A.x++;printf((“%d\n”,x);B.n=++x;printf((“%d\n”,n);C.++x;printf((“%d\n”,x);D.n=x++;printf((“%d\n”,n);

考题 假设变量x的值为25,要输出x的值,以下正确的语句是()。 A、System.Console.WriteLine(“x”)B、System.Console.WriteLine(“x”)C、System.Console.WriteLine(“x={0}”,x)D、System.Console.WriteLine(“x={x}”)

考题 若变量均已正确定义并赋值,以下合法的C语言赋值语句是( )。A.x=y==5; B.X=n%2.5: SXB 若变量均已正确定义并赋值,以下合法的C语言赋值语句是( )。A.x=y==5;B.X=n%2.5:C.x+n=i;D.x=5=4+1:

考题 设有定义:longx=-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);

考题 设有定义:float x=123.4567;,则执行以下语句后的输出结果是[ ]。printf("%f\n"(int)(x*100+0.5)/100.1;

考题 若有定义:int x=0,*p=x;,则语句printf("%d\n",*p);的输出结果是 ______。A.随机值B.0C.x的地址D.p的地址

考题 设有如下定义 int x=10,y=3,z; 则语句 printf("%d\n",z=(x%y,x/y)); 的输出结果是( )A.3B.0C.4D.1

考题 设有以下函数过程Private Function Fun(a()As Integer,b As String)As IntegerEhd Function若已有变量声明:Dim x(5)As Integer,n As Integer,ch As String则下面正确的过程凋用语句是A.x(0)=Fun(x,“ch”)B.n=Fun(n,ch)C.Call Fun x,“ch”D.n=Fun(x(5),ch)

考题 以下程序运行时若要正确输出函数的入口地址和输入数的绝对值,应在程序空缺处填入的正确选项是 ( )。 abs(int x) { if(x>=0)return x: else return -x;} main() { int y,z,(*p)(int x)=abs; scanf(" %d" ,y); z=(*p)(y); ______;}A.printf(" %d%d\n" ,p,z)B.printf(" %d%d\n" ,p,z)C.printf(" %d%d\n" ,*p,z)D.Printf(" %d%d\n" ,p,*z)

考题 设有定义:long x=123456L;,则以下能够正确输出变量x值的语句是( )A.printf("x=%d\n",x);B.printf("x=%ld\n",x);C.printf("x=%8dL\n",x);D.printf("x=%LD\n",x);

考题 设变量均已正确定义并赋值,以下与其他三组输出结果不同的一组语句是( )。A.x++;printf("%dkn",x);B.n=++x;printf("%d\n",n);C.++x;printf("%d\n",x);D.n=x++;printf("%6d\n",n);

考题 设变量均已正确定义并赋值,以下与其他三组输出结果不同的一组语句是A)x++;printf(”%d\n”,x);B)n=++x;printf(”%d\n”,n);C)++x;printf(”%d\n”,x);D)n=x==;printf(”%d\n”,n);

考题 设有定义:long x=-123456L;,则以下能够正确输出变量x值的语句是A.printf(“x=%d\n”,x);B.printf(“x=%1d\n”,x);C.printf(“x=%8dL\n”,x);D.pfintf(“x=%LD\n”,x);

考题 设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。A.1SX 设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。A.1B.0C.4D.3

考题 有以下函数定义:void fun(int n, double x) { …… }若以下选项中的变量都已正确定义并赋值,则对函数fun正确调用的语句是A.fun(int y,double m); B.k=fun(10,12.5); C.fun(x,n); D.void fun(n,x);

考题 设有定义:long x=-123456L; 则以下能够正确输出变量x值的语句是_______。A.printf(“x=%d\n”,x)B.printf(“x=%ld\n”,x)C.printf(“x=?l\n”,x)D.printf(“x=%D\n”,x);

考题 设有定义:“long x=123450L;”,则以下能够正确输出变量x的是( )。A.printf("x=%d\n",x);B.printf("x=%id\a",x);C.printf("x=%dL\n”,x);D.printf("x=%ld\n",x);

考题 有以下函数定义; void fun(int n,double x){......} 若以下选项中的变量都已正确定义并赋值,则对函数fun正确调用语句是______。A.fun(int y,double m);B.k=fun(10,12.5);C.fun(x,n);D.void fun(n,x);

考题 设有定义int x=5;,则执行以下语句后,x的值为______。 x+=x+5;A.10B.15C.20D.25

考题 设有定义:intx=0,*p=x;则语句printf(“%d/n”,*p);的输出结果是()A、随机值B、0C、x的地址D、p的地址

考题 设有定义:int x,*p;,能使指针变量p指向变量x的语句是()A、*p=x;B、p=x;C、*p=x;D、p=*x;

考题 若变量均已正确定义并赋值,以下合法的C语言赋值语句是()A、x=y=5B、x=n%2.5C、x+n=iD、x=5=4+1

考题 单选题设有定义:int x,*p;,能使指针变量p指向变量x的语句是()A *p=x;B p=x;C *p=x;D p=*x;

考题 单选题设有定义:double x=2.12;,以下不能完整输出变量x值的语句是(  )。A printf(x=%5.0f,x);B printf(x=%f,x);C printf(x=%lf,x);D printf(x=%0.5f,x);