搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

假定有定义为“int a[10],x,*pa=a;”,若要把数组a中下标为3的元素值赋给x,则不正确的赋值为()。

A、x=pa[3]

B、x=*(a+3)

C、x=a[3]

D、x=*pa+3

更多“假定有定义为“int a[10],x,*pa=a;”,若要把数组a中下标为3的元素值赋给x,则不正确的赋值为()。”相关的问题
第6题

A、static final int[] a = { 100,200 };  B、static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }  C、static final int[] a = new int[2]{ 100,200 };  D、static final int[] a; static void init() { a = new int[3]; a[0]=100; a[1]=200; }  

点击查看答案
第7题

A、 static final int[] a = { 100,200 };  B、 static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }  C、 static final int[] a = new int[2] { 100,200 };  D、 static final int[] a; static void init() { a = new int[3]; a[0]=100; a[1]=200; }  

点击查看答案
第10题

Aint []x = {1,2,3,4,5};for(int y = 0; y < 6; y++)    System.out.println(x[y]);  B、static int[] x = {7,6,5,4};static { x[1] = 8;x[4] = 3; }  C、for(int y = 10; y < 10; y++)doStuff(y);  D、void doOne(int x) { doTwo(x); }void doTwo(int y) { doThree(y); }void doThree(int z) { doTwo(z); }  E、for(int x = 0; x < 1000000000; x++) doStuff(x);  F、void counter(int i) { counter(++i); }  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服