有以下程序: #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)); } 程序的运行结果是( )
![](/upload/20220827/c85071da6ff0aadc10ebce6c25bb4f0d.png)
相似题目
-
以下程序的执行结果是( )。 #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(){char s[」=”rstuv;printf(”%c\n”,*s+2);}程序运行后的输出结果是
-
以下程序的运行结果是( )。#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 st { int x, y;) data[2]={l,10,2,20}; main() { struct st *p=data; printf(%d,, p->y); printf(%d,(++p)->x); } 程序的运行结果是( )。
-
下程序运行结果________ #include #include struct A {int a; char b[10]; double c; }; void f (struct A *t); main() {struct A a={1001,”ZhangDa”,1098.0}; f(&a); printf(“%d,%s,%6,if”,a.a,a.b,a.c); } void f(struct A *t) { strcpy(t->b, ”ChangRong”); }
-
有以下程序struct STU{char num[10];float score[3];}main(){struct STU s[3]={{\20021\,90,95,85},{\20022\,95,80,75},{\20023\,100,95,90}},*p=s;int i; float sum=0;for(i=0;i<3;i++)sum=sum+p->score[i];printf(\%6.2f\\n\,sum);}程序运行后的输出结果是()
-
以下程序的运行结果是______。#include main(){struct s{int n;int *m;} *p;int d[5]={10,20,30,40,50};struct s arr[5]={100,&d[0],200,&d[1],300,&d[2],400, &d[3],500,&d[4]};p=arr;printf(\%d,\,++p->n);printf(\%d,\,(++p)->n);printf(\%d\\n\,++(*p->m));}
-
有以下程序 #include main() {char *s=(“ABC”); do {printf(“%d”,*s%10);s++; }while(*s); } 注意,字母 A的ASCII码值为65。程序运行后的输出结果是
-
有以下程序#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 void main ( ) { chars[]=\012xy\\08s34f4w2
-
有以下程序: 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;} } 程序的运行结果是()。
-
有以下程序include<stdio.h>main(){char s[]=“rstuv”;printf(“%c\n”,*s+2);}程序运行后的输出结果是()。
-
有以下程序: include<stdio.h> main { char s[]="rstuv"; printf("%c\n",*s+2); }
-
有如下程序 include<stdio.h>struct group { int first, second, third; }; struct group get_min_max_sum(); } 程序运行后的输出结果是
-
有以下程序: 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)
-
以下C语言程序的输出结果是()。struct s{ int x,y;} data[2]={10,100,20,200};main(){ struct s *p=data; p++; printf(“%d//n”,++(p->x));}
-
有以下程序: 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; }
推荐题目
- ()在欧洲被称为“印刷之父”。
- 根据《建筑工程方案设计招标投标管理办法》规定,招标文件包括以下方面内容:()
- 空调管道采用螺纹连接时,管道螺纹应符合哪些要求?
- 第五套(1999年版)人民币100元券票面正面主景为()。(五级、四级)
- 园艺植物层积催芽中植物大粒种子与沙子的最佳混合比例为()。
- 当马铃薯价格从5元涨到10元时,需求曲线的变化为()。
- 秦山核电站位于我国()省海盐县境内
- 公安机关的人民警察在保安服务活动监督管理工作中滥用职权、玩忽职守、徇私舞弊的,依法给予处分;构成犯罪的,依法追究刑事责任。
- 无枪身聚能射孔弹的地面穿钢靶试验中支架采用的材质是()。
- 日本民族深爱萤火虫。早在1933年,神田左京(日本萤火虫专家)就以显赫家族源氏与平氏为两种萤火虫进行再命名,它们就是“源氏萤火虫”与“平家萤火虫”。