有以下程序 #include struct st { int x, y;) data[2]={l,10,2,20}; main() { struct st *p=data; printf(%d,, p->y); printf(%d,(++p)->x); } 程序的运行结果是( )。
相似题目
-
以下程序的执行结果是( )。 #include typedef struct{ int y[4]; char z[8]; } MYTYPE; void main(){ MYTYPE a = { {2,3,5,6},Tom}; puts(a.z); }
-
以下程序的运行结果是( )。#include“stdio.h”main(){ struct date{intyear,month,day; }today;printf(“%d\n”,sizeof(struct date));}
-
有以下程序#include struct ball{char color[10];int dim;};int main( ){struct ball list[2] = {{white, 2}, {yellow, 3}};printf(%s:%d , (list+1)->color, list->dim);return 0;}程序运行后的输出结果是( )
-
有以下程序: #include struct S { int a,b; } data[2]={10,100,20,200}; void main() {struct S p; p=data[1]; printf(%d\n,++(p.a)); } 程序的运行结果是( )
-
以下程序运行后的输出结果是#include#includeintmain(){charst[20]={hello\0\t\\\};printf(%d%d\n,strlen(st),sizeof(st));return0;}
-
#include struct st{ int x, y;} data[2]={l,10,2,20};main(){ struct st *p=data;printf(\%d,\, p->y);printf(\%d \,(++p)->x);}程序的运行结果是
-
以下程序的运行结果是_______。#include main(){struct st{int n;struct st *np;};struct st a[3],*p;a[0].n=7;a[0].np=&a[1];a[1].n=9;a[2].np=&a[2];a[2].n=11;a[0].np='\\0';p=&a[0];printf(\%d\\n\,++p->n);}
-
以下程序的输出结果是( ). struct st { int x;int *y;}*p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0],}; main( ) { p=aa; printf(\%d\\n\,++(p->x)); }
-
有以下程序#include struct ball{char color[10];int dim;};int main( ){struct ball list[2] = {{\white\, 2}, {\yellow\, 3}};printf(\%s:%d\, (list+1)->color, list->dim);return 0;}程序运行后的输出结果是( )
-
有以下程序: include<stdio.h> struct tt {int x;struct tt*y;}*p; struct tt a[4]={20,a+1,15,a+2,30,a+3,17,a} main() { int i; p=a; for(i=1;i<=2;i++){printf("%d",p->x);p=P->y;} } 程序的运行结果是()。
-
设有以下程序: struct st{int n;struct st *next;}; static struct st a[3]={5,&a[1],7,&a[2],9,'\0'},*p; p=&a [0]; 下面选项中,表达式值为6的是______。
-
以下程序的输出结果是 include<stdio.h> struct st i int x;int *y;}*p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&it[0],60,&dt[0],}; main() { p=aa; printf("%d\n",++(p->x));}
-
有如下程序 include<stdio.h>struct group { int first, second, third; }; struct group get_min_max_sum(); } 程序运行后的输出结果是
-
若有以下说明和语句: struct st{int n;char *ch;}; struct st a[3]={5,"abc",7,"def",9,"ghk"},*p=a; 则值为6的表达式是______。
-
以下程序的输出结果是()。struct st{int x;int *y;} *p;int dt[4]={ 10,20,30,40 };struct st aa[4]={ 50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0]};void main(){p=aa;printf("%d/n",++(p->x));}
-
请根据程序中的注释,把程序补充完整 include <stdio.h> struct student { char name[20];
-
有以下程序: include<stdio.h> include<string.h> struct A {int a;char b[10];double C;); struct A f(struct A t): main() {struct A a={1001,"ZhangDa",l098.0}; a=f(a);printf("%d,%S,%6.1f\n",a.a,a.b,a.c); } struct A f(struct A t) {t.a= 1002;strcpy(t.b,"ChangRon9");t.c=1202.0;return t;} 程序运行后的输出结果是()。
-
有以下程序 include<stdio.h>include<string.h>typedef struct stu { char name[10]; char gender; int score; } STU; void f(); } 程序的运行结果是
-
以下程序运行后的输出结果是 ______。 include <stdio.h> struct NODE { int k; char s[20
-
有以下程序: include include struct A {int a;char b[10];double C;); struct A f(struct A t
-
有以下程序: include struct stu { int num;char name[l0];int age;}; void fun(struct stu*p)
-
有以下程序: include struct STU{char name[9];char sex;int score[2];}; void f(struct STU a[
-
有以下程序: include<stdio.h> include <string.h> typedef struct char name[9]; char sex; float score[2]; STU; void f(STU a) STU b="Zhao", "m", 85.0, 90.0; int i; strcpy(a.name, b.name); a.sex=b.sex; for (i=0
-
阅读以下程序,写出程序的输出结果________ include <stdio.h> struct VALUE { int x; char c; }; void func(struct VALUE b) { b.x -= 100; b.c+= 4; } int main() { struct VALUE a ={100,'A'}; func(a); printf("%d %cn",a.x,a.c); return 0; }