POINTERS | Sololearn: Learn to code for FREE!



Can someone explain me, how does pointer can help me?

9/10/2017 6:43:02 AM

Alexander Malcev

4 Answers

New Answer


Hope you get your answer in detail here: https://www.tutorialspoint.com/cplusplus/cpp_pointers.htm


all a pointer is, is just a location in memory. It is nothing more than that. You can of course do alot with pointers but don't make it complicated on yourself.


https://code.sololearn.com/c61GMzvZJSTS/?ref=app A C++ Program for 1-D and 2-D array


The answer is 44 because the array pointer points 1st element and we adding +2 in the ptr ie. Int arr[5+2]