### C Programming Example Problems for Detailed Explanation I am a beginner as detailed as possible!

The number of bytes occupied by an integer number is 4 bytes, i.e., a 16-bit binary number. According to the permutation, the possible values of the 16-bit binary number, i.e., the range of representation is 65536, which is 2 to the 16th power.

Integer numbers are subdivided into signed and unsigned, signed numbers then can represent negative numbers, so the range is [-32768,32767], that is, 65536 is divided into negative and non-negative numbers in two halves; unsigned can only represent non-negative numbers, so the range is [0,65535]. 2^14+2^13+2^12+…+2^0=-1.

### C programming test questions for standard answers are all multiple choice

1.Answer:A

(All the single quotes enclosed are characters, and a pair of single quotes corresponds to at most one character,\ backslash is the beginning of the escape character,\72 is the ASCII code corresponding to the letter H. That is to say, the letter H is stored in the variable chara. Just one character H.)

2, ACDE

Analysis:

inta = 3,b = 4,c = 5;,

A, a>b

B, a<=b

C, (a||b)>c

D, a<=(b||c)

E, ! ((a < b)&&!c||b)

In descending order of priority: ()! &&||

Option A, 3>4 is incorrect, logical value 0.

Option B, 3<=4 is correct, logical value 1.

Option C, (3||4)>5, (3||4) “or” logical operator on both sides of the entire value of a non-zero is 1,1>5 is wrong, logical value 0.

Option D, 3<=(4||5) is wrong, logical value 0.

Option E, ! ((3<4)&&!5||4), first (3<4) logical value 1,!5 logical value 0, 1&&0 is 0,0||4 is 1,!1 is 0, so the logical value of 0.

3. AC.

Answer: A can be, B answer b can not be assigned (from the left to the right, the calculation of || the left side on the has been 1 on the right side of the need to calculate the entire expression regardless of how the right side of the entire logical value must be 1, the computer will not calculate the right side of the C can be (because && both sides must be calculated in order to arrive at the final logical value of the answer), D can not be a can not be assigned (&& the left side of the a, can not be constructed to assign a value that may be stored in a random value, the right side can be assigned). (The right side can be assigned).

4, ABCD.

External functions can be called by almost any function. As long as the beginning #include “” introduced.

### Basic topics of c programming for advice, please give analysis (more chase points)

First question. 2

int type may be 2 or 4, it depends on the compiler as well as operating system, TC is 2, VC6.0 is 4. But short is 2 everywhere

You

printf(“%d”,sizeof(short));

Look and see.

The second question, 3 you can just run it yourself.

a[5]==6

Third question, D

n is int

p is int*

q is int*

*p is int

*q is int*

A: p=q

B:*p=*p

C. n=*p

D;p=n

Question 4 C

(*p)++ is the variable pointed to by p++

and a++ is the address++

Question 5 d

C doesn’t support this declaration.

At the very least, declare that there are several columns