刚学的C语言struct stint i;int j;int *q;main(){struct m[]={{10,1},
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/05/11 17:41:45
刚学的C语言
struct st
int i;
int j;
int *q;
main()
{
struct m[]={{10,1},{20,2},{30,3}}
q=m;
printf("%d\n",(*++q).j);
}
(*++q).
struct st
int i;
int j;
int *q;
main()
{
struct m[]={{10,1},{20,2},{30,3}}
q=m;
printf("%d\n",(*++q).j);
}
(*++q).
哥哥,你肯定打错了
main函数前面应该是结构体,所以会有个括号才对
而且int *q应该是结构体变量
这样一来(*++q).j意思不是很明显了吗?
main函数前面应该是结构体,所以会有个括号才对
而且int *q应该是结构体变量
这样一来(*++q).j意思不是很明显了吗?
刚学的C语言struct stint i;int j;int *q;main(){struct m[]={{10,1},
#includestruct st{int i;int j;} *p;void main(){struct st m[]
struct S { int i; int * p;}; main () {S s ; int *p =&s.i ; p
c语言的一道题若有以下程序段:struct st{int n;int *m;};int a=2,b=3,c=5;stru
#include main() { struct node{int n;struct node *nest;} *p;
struct st{int x;int*y;}*p;inta[]={1,2},b[]={3,4};struct st c
以下程序的输出结果是 struct HAR {int x,y; struct HAR *P;} h[2]; main()
#include struct ord { int x,y;} dt[2]={1,2,3,4}; main() {str
struct { int i ,j ,k; } a[3]={1,2,3,4,5,6,7,8,9}; cout
Struct Struct st {int x;int *y;}*pt; Int a[]={1,2},b[]={3,4}
struct m { int x; int *y; }*p; int a[4]={12,13,-40,100};
(1/2)已知有如下声明,则sizeof(test)的值是_____?struct {int i; char c; fl