笔果题库
计算机二级C语言程序设计
免费题库
搜题找答案,就上笔果题库
有如下程序#include main(){int i, data;scanf("%d", &data);for (i=0; i data) break;printf("%d,", i);}printf("\n");}程序运行时,从键盘输入:3后,程序输出结果为______。
搜题找答案,就上笔果题库
有如下程序#include main(){int x = 0x13;if (x = 0x18) printf("T");printf("F");printf("\n");}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
有以下程序段int x=3;do{ printf("%d",x-=2);}while(!(--x));其输出结果是______。
搜题找答案,就上笔果题库
设有定义:int x=2;,以下表达式中,值不为6的是______。
搜题找答案,就上笔果题库
有以下程序#include int f(int m){ static int n=0;n+=m;return n;}main(){ int n=0;printf("%d,",f(++n));printf("%d\n",f(n++));}程序运行后的输出结果是______。
搜题找答案,就上笔果题库
有以下程序#include void fun(int *s,int n1,int n2){ int i,j,t;i=n1;j=n2;while(i
搜题找答案,就上笔果题库
若有以下程序#include #include #include typedef struct stu{char *name, gender;int score;} STU;void f(char *p){p=(char *)malloc(10);strcpy(p, "Qian");}main(){STU a={NULL, ''m'', 290}, b;a.name=(char *)malloc(10);strcpy( a.name, "Zhao" );b = a;f(b.name);b.gender = ''f''; b.score = 350;printf("%s,%c,%d,", a.name, a.gender, a.score);printf("%s,%c,%d\n", b.name, b.gender, b.score);}则程序的输出结果是______。
搜题找答案,就上笔果题库
以下程序的输出结果是______。#include void fun(int t){ int i; extern int m; for(i=0;i
搜题找答案,就上笔果题库
若有函数声明 void fun(float array[], int *ptr);以下叙述正确的是______。
搜题找答案,就上笔果题库
有以下程序#include main(){ int a=7,b=0;do {b+= a;a-=1;} while (a--) ;printf("%d,%d\n",b,a);}执行后的输出结果是______。