Chapter 1 Introduction
1.Which of the following are illegal identifiers?Circle the illegal identifi
ers(下列哪个是非法的标识符?圆非法的标识符)(A C D)
A.3id ,
B._yes ,
C.star*it ,
D.int
2 .Which of the following are illegal identifiers?Circle the illegal identifie rs. (下列哪个是非法的标识符?圆非法的标识符)(B C D)
A.xyshouldI ,
B. me_to-2 ,
C. one_i_aren??t,
D. 2_i_am
Chapter 2 Learning by Example
1、What is correct about the following program?(什么是正确的关于下列程序)(C)
#include
#define count 6
void main(void)
{
count = count + 1 ;
printf("%d", count) ;
}
A. …7… is output and count becomes 7 ,C. Runtime Error ,
D. …7… is output but count remains 6
2、Indicate which of the following are legal variable names in C(下列哪些是合法的变量名): ABC
A、X ,
B、formula1 ,
C、average_rainfall ,
D、%correct
1826

被折叠的 条评论
为什么被折叠?



