+ 3
hi guys, i m just a beginner in c++, this parts i means Pointers is difficult for me, i dont understand clearly and where can i use this if i built app. Is it important in c++ ?
6 Answers
+ 8
A pointer is similar to a variable in that it stores a value for later use in the execution of your program. However, a pointer has further significance in that the location in computer memory is also stored along with the value...
You may ask, "Why store the location along with the value?" Because, using the pointer in subroutines versus accessing the data itself (in most cases) will improve the performance and utilization of computer resources. The effect is that elapsed run time is decreased.
+ 2
An address is certain code that is defined when a variable is defined.
This is clearer: http://alumni.cs.ucr.edu/~pdiloren/C++_Pointers/
+ 1
a pointer stores the address of another variable and it just has the reference not value of another object , it is compulsory that the data type of pointer and the data type of variable (which the pointer variable refer ) must be same ,. USES:- in c++ pointers are frequently use in polymorphism, link lists etc.
+ 1
hi Ariess :-) :-) :-) :-) :-) :-)
0
a pointer stores the address of an object as simple as it is given