sync: 2026-09-25 12:06
This commit is contained in:
1 parent
3be0582127
commit
3fe519fe39
3 files changed
+20
-2
No files matched your search
@@ -470,5 +470,24 @@ int main(void) {
|
||||
|
||||
> ce code utilise deux constantes pour remplacer les valeurs magiques par des noms pour rendre le code plus lisible
|
||||
|
||||
## Types
|
||||
|
||||
### Les types primitifs
|
||||
|
||||
| Nom | Taille | Format | Constantes ? |
|
||||
| -------------------- | ------ | --------------------------------------- | ------------ |
|
||||
| char | 8 | %c (character) | 'A' |
|
||||
| signed char | 8 | %hhd (sHort sHort Digit) | 'A' |
|
||||
| unsigned char | 8 | %hhu (sHort sHort Unsigned), %hho, %hhd | 'A' |
|
||||
| short (int) | 16 | %hd | |
|
||||
| unsigned short (int) | 16 | %hu, %ho, %hx | |
|
||||
| int | 32 | %d | -34 |
|
||||
| unsigned (int) | 32 | %u, %o, %x, %i | 12U |
|
||||
| long (int) | 64 | %ld | -34L |
|
||||
| unsigned long (int) | 64 | %lu, %lo, %lx | 12UL |
|
||||
| | | | |
|
||||
| | | | |
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user