Whe we use pointer in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Whe we use pointer in c++

I need answar please

24th Jan 2017, 1:46 PM
Asghar Warraich
Asghar Warraich - avatar
3 Answers
+ 2
pointers are used when we want to change specific memory means we have a variable a in main we will pass its location to another function using pointer and then make changes at location then we come back to main and we see that the value to A changes .
13th Feb 2017, 4:53 PM
Zaka Ahmad Chishti
Zaka Ahmad Chishti - avatar
+ 2
this why we use pointers or global variables
13th Feb 2017, 4:54 PM
Zaka Ahmad Chishti
Zaka Ahmad Chishti - avatar
+ 2
pointers are also used for ethical hacking purposes......
13th Feb 2017, 4:54 PM
Zaka Ahmad Chishti
Zaka Ahmad Chishti - avatar