Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 01 / README.md
blob: e89e8dc111ec93fb3708f5c7451168d09beb1693 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Основни типове. Преобразуване между типове. Оператори.


## Основни типове

|          Тип           |  Памет:  |     Стойности:                 |
|:----------------------:|:-------:|:-------------------------------:|
|      unsigned char     |  1 byte |             0 to 255            |
|       signed char      |  1 byte |           -127 to 127           |
|           int          | 4 bytes |    -2147483648 to 2147483647    |
|      unsigned int      | 4 bytes |         0 to 4294967295         |
|       signed int       | 4 bytes |    -2147483648 to 2147483647    |
|        short int       | 2 bytes |         -32768 to 32767         |
|   unsigned short int   | 2 bytes |           0 to 65,535           |
|    signed short int    | 2 bytes |         -32768 to 32767         |
|        long int        | 8 bytes | -2,147,483,648 to 2,147,483,647 |
|     signed long int    | 8 bytes |         same as long int        |
|    unsigned long int   | 8 bytes |        0 to 4,294,967,295       |
|      long long int     | 8 bytes |       -(2^63) to (2^63)-1       |
| unsigned long long int | 8 bytes | 0 to 18,446,744,073,709,551,615 |
| float                  | 4 bytes |                                 |
| double                 | 4 bytes |                                 |
| bool                   | 1 bytes |            0 to 1               |