why shall i use Pointer when i can use & they both gets you the address of a variable
Pointer and & operator
hey, can u pls explain ur doubt…
like what is the diffrence between pointer and & operator
“*” Operator is used as pointer to a variable. Example: * a where * is pointer to the variable a. & operator is used to get the address of the variable . Example: &a will give address of a.
1 Like
thanks for the explanation helped alot
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.