skip to main
|
skip to sidebar
ricky-cplusplus
Thursday, July 5, 2007
Pointers
//Pointer is the address in the memory.
#include
using namespace std;
int main(){
int x;
int * mypointer;
mypointer = &x;
*mypointer = 2;
x = 3;
cout << "Value of x is: " << *mypointer << endl;
//What we will get?
return 0;
}
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2007
(2)
▼
July
(2)
pointer to the class
Pointers
About Me
ricky
View my complete profile
No comments:
Post a Comment