- 13
- 0
- 约1.57万字
- 约 28页
- 2017-06-05 发布于河南
- 举报
c语言套题(国外英文资料)
c语言套题
The following statement is correct ().
In the process of compiling A C program, the spelling errors in the annotation can be found
In the C program, the main function must be at the front of the program
The C and C languages themselves have no input output statements
The D, C program, if int type data is two bytes, the output of the following statement is ().
If int type data is two bytes, the output of the following statement is ().
Int k = 1; Printf ( % d, % u \ n , k, k);
A, 1, 1
B, 1327-1327
C, 1327-1327
D, 35-1655.
The output of the following segment is (). Int x = 3, y = 2; Printf ( % d , (x - = y, x * = y + 8/5));
5 A,
B, 3
C, 7
D, 1
The output of the following program is: ().
The main ()
{int I = 2, p;
P = f (I, I + 1);
Printf ( % d , p);
}
Int f of int a, int b.
{int c;
C = a;
If (a b) c = 1;
Else if (a = = b) c = 0;
The else c = 1;
Return the c;
}
A, 0
B, 1 -
C, 2
D, 1
In the following segment, the loop is correctly executed ().
A, int s = 6; M: if (s 100) exit (0); The else s - = 2; Goto m:
B, int s = 6; Do the s - = 2; While (s);
C, for (I = 1; I 10; I + +)
D, the static int a; While (a)
In C, the one-dimensional array is defined by the type specification array name ().
A, [integer constant] or [integer expression]
B, [positive integer constant expression]
C, [integer expression]
D, [constant expression]
The following is true ().
A, the user needs to call the standard library function, and you dont have to use precompiled commands to include the function in the user source file before the call, and the system is automatically tuned
B, if the user calls the standard library function, the call must be redefined
The system does not allow users to redefine the standard library functions
D, the user can redefine the standard library function, and if so, the function will lose its original meaning
In the # include command, the filename can be enclosed in double quotation marks or Angle brackets, and the correct one for the following statement is ().
W
原创力文档

文档评论(0)