+ 7
Pointer is a hard lesson for me can someone explain it in a simple way
cpp pointers
6 Answers
+ 12
Here is the basics;
https://www.sololearn.com/learn/CPlusPlus/1630/?ref=app
Good luck đđđđ
+ 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
+ 5
I meant the "*" and "&"
https://code.sololearn.com/c4l0cwMzXDQW/?ref=app
+ 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.
+ 2
Pointer is nothing but a space in memory to store address of aother value...
0
You have a teacher