-
Notifications
You must be signed in to change notification settings - Fork 0
C Memory & Strings
MarekBykowski edited this page May 26, 2026
·
1 revision
int a = 42;
// ↑ ↑
// zmienna integer literal| Element | Co to jest |
|---|---|
int a |
zmienna — ma adres w pamięci |
42 |
integer literal — wartość w kodzie źródłowym |
Literały w C:
"HI!" // string literal
42 // integer literal
3.14 // float literal
'A' // char literal
'\0' // null literal// cs50.h
string s = "HI!";
// raw C — to samo!
char *s = "HI!";cs50.h robi tylko:
typedef char* string; // aliaschar *s = "HI!";