+ 7

Pointer is a hard lesson for me can someone explain it in a simple way

cpp pointers

16th Apr 2018, 7:34 PM
Fafali.
Fafali. - avatar
6 Answers
+ 12
Here is the basics; https://www.sololearn.com/learn/CPlusPlus/1630/?ref=app Good luck 💚👍😉💙
16th Apr 2018, 8:58 PM
Baraa AB
Baraa AB - avatar
+ 8
Thanks guy really appreciate it if u like check my codes and give me an upvote or correct my code if any fault found
16th Apr 2018, 9:01 PM
Fafali.
Fafali. - avatar
16th Apr 2018, 8:52 PM
Fafali.
Fafali. - avatar
+ 5
int *ptr; // Hold a pointer to an integer int val; // An integer to use ptr = &val; // Get the address of val and put it into pointer *ptr = 5; // Store 5 into what pointer has address of. Updates val to 5 as a side effect.
16th Apr 2018, 8:57 PM
John Wells
John Wells - avatar
+ 2
Pointer is nothing but a space in memory to store address of aother value...
16th Apr 2018, 7:53 PM
ARIF ANSARI
ARIF ANSARI - avatar
0
You have a teacher
6th Jul 2018, 5:48 PM
Felix Brobbey