Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Please! Urgent! Urgent! C language problem
Please! Urgent! Urgent! C language problem
1. let y be an int variable, please write an expression that describes "y is an odd number"-y% 2 = = 1

2. according to c language, the starting point of the executable program is-main function

3, and char *ch[2] means-an array of pointers with a length of 2.

4. There are two methods to pass function parameters, namely-value and pointer

5. In C language, pointer variables can assign address values or-change the values stored in storage units

2. Select

1. Let both X and Y be real variables, then the following illegal assignment statement is C: Because = There are no variables on the right. (Hehe, the most popular one)

2. The following macro definition is () which will not cause ambiguity when calculating the square number under any circumstances. B because if x is an expression (such as addition and subtraction), you must need parentheses! You should be able to meet it when you are doing the problem!

3. It is explained that int k=3,a[1]; The following expression that can correctly refer to array elements is (). A。 Because a is equivalent to referencing array element a[3]. Items b and d are out of range. The [] in C should not be a floating-point type, but only an integer, or an integer expression (such as addition and subtraction)

4: b "=" is equivalent to an attached value.

5: b, the break statement can only be used in the loop body and the Switch statement body. This is the basic concept in the book, just look at it and you will know.

6:D。 Puts can output strings directly.

, self-increasing and self-decreasing operators are suitable for any type of variables-error

2. Any binary operator and assignment operator can form a compound operator.

3. In C language, multiple statements can be written on one line, and one statement can be written in multiple lines. -Correct

4. A function body can contain multiple return statements. -correct

5. The number of storage units occupied by structural variables is equal to the sum of the number of storage units occupied by its members.

6. Enumeration elements are not variables and their values cannot be changed.

7, int (*f) () means defining a function whose return type is to point to an integer variable. -error