语句double a[8],*p=a,int i=5;*a是什么意思?*a[5]是什么意思?解释一下
人气:412 ℃ 时间:2019-12-05 22:42:55
解答
*是定义指针
你是说*p和*p[5]吧
*p就是定义一个指针变量p,其值是数组a的起始地址
*p[5]是数组的第六个元素
推荐
- 若有定义语句:int a=10;double b=3.14;,则表达式‘A’+a+b值得类型是double 为什么呢
- C语言:有以下定义语句 double a,b; int w; long c;
- 若有定义语句int a,b; double x;下列选项中没有错误的是
- 设有定义“int x; double y; ”及语句“x=y; ”,则下面正确的说法是( ).
- 设有定义语句:int x[6]={2,4,6,8,5,7},*p=x,i;
- they can invent many things and c____ the world a lot
- 方程x/6-(x-1)/6=2x+k的解为x=3,则k^2+1/k=
- 不同温度下甘油密度
猜你喜欢