+ 6

May someone explain me what a pointer is?

26th May 2017, 12:09 AM
Rui Borges
Rui Borges - avatar
5 Respuestas
+ 6
variable is just like a variable which is stores the address of the variables. the address always be in integer value it doesn't matter that variable is integer,float,char etc. it always store the address in the integer values.
26th May 2017, 12:37 AM
Abhi Agarwal
Abhi Agarwal - avatar
+ 8
A pointer is a variable that stores the address in memory of other variables. EDITED: http://www.thegeekstuff.com/2011/12/c-pointers-fundamentals/
26th May 2017, 12:16 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 4
https://en.m.wikipedia.org/wiki/Pointer_(computer_programming)
26th May 2017, 12:18 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 4
I need to use them more. Pointers can be a great asset to C++ programs.
26th May 2017, 1:39 AM
Manual
Manual - avatar
+ 2
Pointers allow for indirection when manipulating data, in other words a pointer provides an indirect means of accessing the value of a variable. Pointers are very powerful, but are often misunderstood and misapplied. If I sound like I understand pointers, well I might a bit, but not as much as I could or even should. I'm still learning about pointers all of the time. Read up on pointers and try them out.
26th May 2017, 3:48 AM
Steven Schneider
Steven Schneider - avatar