程序includevoidmain(){structdata{inta;floatb;charc}m={10, 5.5,’A’};printf("%f%c\n",m.a*m.b,m.c);}的执行结果是()。
相似题目
-
下面程序的运行结果是______。#include#includevoidmain(){charp1[50]=”abc”,*p2,str[50]=abc
-
以下程序的运行结果是( )。#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 struct st { int x, y;) data[2]={l,10,2,20}; main() { struct st *p=data; printf(%d,, p->y); printf(%d,(++p)->x); } 程序的运行结果是( )。
-
运行下列程序,其输出结果为。struct tree {int x;char *s;}t;func(struct tree t){t.x=10;t.s=computer
-
阅读下列程序写出程序的运行结果。#includevoidmain(){inti,j,m,n;i=8;j=10;m=++i;n=j++;printf(“%d,%d,%d,%d”,i,j,m,n);}
-
判断下面程序的输出结果()#include#includevoidmain(){chars1[]=ABCDEF,s2[]=aB;printf(%d\n,strcmp(s1,s2));}
-
以下程序段的输出结果为().#includevoidmain(){inti,j;for(i=4;i>1;i--)for(j=1;j
-
以下程序的运行结果是( )#includeint main(){struct date{ int year,month,day; }today;printf(\%d\,sizeof(struct date));return 0;}
-
有以下程序#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;}程序运行后的输出结果是( )
-
以下结构体类型,能够用来定义链表结点变量。(第8章 结构体程序设计)struct node{ char name[10];struct node *next;};
-
有以下程序: 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 HAR{int x,y;struct HAR *p;}h[2]main(){h[0].x=1;h[0].y=2
-
对于下面的文件内容和程序,正确的结论是()。//以下是文件mydoc.txt的内容intss=100//以下是C程序内容includevoidmain(){include"mydoc.txt"printf("s=%d/n",s)}
-
有如下程序 include<stdio.h>struct group { int first, second, third; }; struct group get_min_max_sum(); } 程序运行后的输出结果是
-
请根据程序中的注释,把程序补充完整 include <stdio.h> struct student { char name[20];
-
程序includevoidmain(){floata= 11.0,b=3;printf(“% 5.2f\n”,a/b);}执行后的输出结果是()。
-
有以下程序: 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;} 程序运行后的输出结果是()。
-
执行以下程序:includevoidmain(void){charc=0;cout<<c<<’/n’;}输出的结果是________。
-
有以下程序: 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> 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; }
推荐题目
- 古罗马历史学家塔西佗曾这样谈论执政感受:当政府不受欢迎的时候,好的政策和坏的政策都会得罪人民。这个见解后来成为西方政治学的定律之——“塔西佗陷阱”。以下符合“塔西佗陷阱”定律的是:
- 腺苷取代ATP作为血管扩张药的主要原因是()。
- 专利许可证、专利许可合同
- 电气装置接地包括()。
- 刘某,男,73岁。患冠心病、心肌梗死,住某医院。心痛彻背,背痛彻心,面色发绀,汗出肢冷,舌质紫暗,脉象沉细。本案属何种病证()
- 二度房室传导阻滞()
- 多宿主性寄生
- 德国学者()在20世纪一二十年代发表的著作中,对官僚制度的系统分析和论证促成了公共行政学理论体系的建立。
- 安全带是登高作业时的保护用具,使用时系在()。A、腿部B、腰部C、肩部
- 潜油电机定子铁芯不分节。()