Starlit Daily

📚 › C

6. Pointers, the idea

इस लेख का अनुवाद अपने आप होगा। अभी अंग्रेज़ी में दिखाया जा रहा है।

A pointer stores a memory address. & gives the address of a variable, and * reads or changes the value at an address. Pointers are powerful and also a big source of bugs.

उदाहरण देखें

int x = 5;
int *p = &x; // p holds the address of x

← कोर्स पर वापस