求高手解答一下 程序中的这两句 p->y "(++p)->x);代表什么意思~~~
#include<stdio.h>structst{intx,y;}data[2]={1,10,2,20};voidmain(){structst*p=data;prin...
#include <stdio.h>
struct st
{
int x,y;
}
data[2]={1,10,2,20};
void main()
{
struct st *p=data;
printf("%d,",p->y );
printf("%d\n",(++p)->x);
} 展开
struct st
{
int x,y;
}
data[2]={1,10,2,20};
void main()
{
struct st *p=data;
printf("%d,",p->y );
printf("%d\n",(++p)->x);
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询