C Language Chinese Network homework day01

1. The first day

1. Can C language be used to develop websites?

The 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 kind of self-mockery

3. What does portability mean in terms of programming?

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

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

Binary: 0b
Octal: 0
Decimal: Normal number
Hex: 0x

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

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

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

First correspond the binary digits to the decimal value, and then piece them together

64 32 16 8 4 2 1

1 0 1 1 0 0 1

The result is: 1011001

7. How much is 0x7D converted 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 binary 101 110 to octal?

The result is: 56

Guess you like

Origin blog.csdn.net/u013431141/article/details/126452738
Recommended