Lesson 18 of 23
Pointers: Addresses सोबत काम
12 min 35 XP
प्रत्येक variable memory मध्ये एका address वर राहते; &x तो address देतो. Pointer म्हणजे address साठवणारे variable: int *p = &x;. *p त्या address वरील value वाचतो किंवा लिहितो (dereferencing).
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.NULL pointer dereference केल्यास प्रोग्राम crash होतो (segmentation fault). Pointer वापरण्यापूर्वी NULL तपासा.