1.选择题(每小题2分,共20分)

A. (a>0 || b>0) && (a<0 || b<0) B. (a>0 && b>0) && (a<0 && b<0) C. (a+b > 0) && (a+b < 0) D. a>0 && b>0 || a < 0 && b < 0

A. x == 0 B. x!=1 C. x!=0 D. ~x

A. 从0到4 B. 从1到5 C. 从0到5 D. 从1到4

A. float B. float* C. float *[] D. float []

struct student{

}stud, *pstud = &stud; 则以下访问结构体成员的表达式正确的是( )。 A. student.name B. stud.name C. pstud.name D. student->name

struct {

} flag; 则以下关于其中的成员的取值范围,正确是( )。 A. status成员可以取从-2到1的值 B. status成员可以取从0到3的值 C. key成员只能取1或者2 D. status成员只能取0或者1

union {

}u = {15}; 则以下表达式语法正确并且有确定的值的是( )。 A. u.ival B. u.fval C. u.sval D. *u.sval

A. scanf("%i", i); B. scanf("%f", &f); C. scanf("%d", &d); D. scanf("%s", &s);

A. int pf(int) = &tolower; B. int (*pf)(int) = tolower; C. int (*pf)(void) = tolower; D. int pf(void) = &tolower;

prog hello world 则程序中argc的值为( )。 A. 0 B. 1 C.2 D.3

void swap(char *v[], int i, int j) {

} void qsort(char *v[], int left, int right) {

}

struct node {

}; struct node *search(struct node *head, char *word) {

}

#include <stdio.h> int main() {

}

#include <stdio.h> int main() {

}

#include <stdarg.h> #include <stdio.h> double va_fun(int n, ...) {

} int main() {

}

#include <stdio.h> int main() {

}

#include <stdio.h> #include <ctype.h> int main(){

}

#include <stdio.h> #include <stdlib.h> struct point {

} int area(struct point *p1, struct point *p2) {

} int main() {

}

char *strstr(char *s, char *t) {

}

#include <stdio.h> void filecopy(FILE *in, FILE *out) {

} main (int argc, int *argv[]) {

}

diff in1.txt in2.txt 程序将读取in1.txt和in2.txt的内容。假设这两个文件的内容如下: in1.txt: hello jack hello rose hello titanic hello world

in2.txt: hello jack hello joan hello island hello world 则程序将输出结果: hello jack hello world

ch3n2k.com | Copyright (c) 2004-2020 czk.