programowanie hihi

This commit is contained in:
2025-10-13 11:23:33 +02:00
parent 7a7f7ffbc0
commit 04e9a2256c
9 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
Scanf super duper funkcja która ustawia zmienną na input
```c
int i;
scanf("%d", &i);
```
Dajemy &i, bo scanf jako drugi argument przyjmuje miejsce w pamięci.
W m\*crosoftowym kompilatorze jest `scanf_s("%typ", adres, rozmiar)`, gdzie rozmiar mówi ile znaków wstawić.