题目内容

执行以下程序后,输出结果为。#include struct Student //声明学生结构体类型{unsigned num;char name[15];int age;int score;}stu[2]={{101,"王明",18,90},{102,"陈红",19,85}};int main(){if(stu[0].score>stu[1].score){printf("%d\n",stu[0].score);}else{printf("%d\n",stu[1].score);}return 0;}

查看答案
更多问题

执行以下程序后,输出结果第一行为,第二行为,第三行为,第四行为。#include #includestruct Student //声明学生结构体类型{unsigned num;char name[15];int age;int score;}stu[2]={{101,"王明",18,70},{102,"陈红",19,85}};int main(){int temp;char tstr[15];if(stu[0].score

以下程序功能是实现从键盘对一个学生结构体变量进行输入并输出对应的学生信息,请补充以下程序,使其实现对应的功能。#include struct Student //声明学生结构体类型{unsigned num;char name[15];int score;};int main(){struct Student s1;scanf("%d%s%d",,,);printf("%d %s %d\n",s1.num,s1.name,s1.score);return 0;}

执行以下程序,如果输入为黄瓜鱼,则输出为。#include#includestruct Product{char name[20];int price;}p[10]={{"大米",5},{"猪肉",30},{"苹果",8},{"脐橙",6},{"车厘子",50},{"大豆",5},{"黄瓜鱼",20},{"南瓜",2},{"土豆",3},{"明虾",40}};int main(){char tname[20];scanf("%s",tname);int i;for(i=0;i<10;i++){if(strcmp(tname,p[i].name)==0){printf("%d\n",p[i].price);break;}}return 0;}

在某粘土地基上快速施工,采用理论公式确定地基承载力值时,抗剪强度指标ck和jk应采用下列试验方法的试验指标是否正确(不固结不排水 )

A. 对
B. 错

答案查题题库