1. The first day

1. Can C language be used to develop websites?

C language can only do some simple things and is not suitable for developing websites.

2. Many people think that "being a programmer is as hard as a farmer", what do you think about this?

is a self-mockery

3. What does portability mean in terms of programming?

Code once, run on multiple platforms, without considering the hardware differences of multiple platforms, and pay more attention to the logic of the program itself.

4. What are the prefixes of binary, octal, decimal, and hexadecimal?

Binary: 0b
Octal: 0
Decimal: normal numbers Hexadecimal: 0x

5. What is the conversion of 1011 1101 in binary to hexadecimal?

Convert to decimal: 11 13
Convert to hexadecimal: bd
The result is: 0xbd

6. What is the conversion of decimal 89 to binary?

First map the binary digits to the decimal values, and then piece them together

64 32 16 8 4 2 1

1 0 1 1 0 0 1

The result is: 1011001

7. What is the conversion of 0x7D to decimal?

112 (7*16) + 13 = 125

8. What is the conversion of 076 to decimal?

The result is: 62

9. What is the conversion of 101 110 in binary to octal?

The result is: 56


汤青松
5.2k 声望8.3k 粉丝

《PHP Web安全开发实战》 作者