English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

give an example program using class with resolution operator

2006-09-03 20:01:18 · 3 answers · asked by Anonymous in Computers & Internet Software

3 answers

Pointers are a type of special variable that store the address of the ordinary data type variables rather than the variable itself. They are also of types int,char, etc to store addresses of variable of type int,char...
eg:
suppose intx=3;
the variable x gets stored at a memory location 1001h
the & operator defines the address of a variable
now declare an pointer variable of type int
int *y;
y=&x;
here the address of x gets stored in y.
cout< the result will be like 1001.
this is the simplest way i can give you the concept of pointers but it is a huge topic to be understood completely.
bye

2006-09-03 20:08:40 · answer #1 · answered by farru 3 · 0 0

http://www.google.com/search?q=c%2B%2B+pointers+wiki&rls=com.microsoft:en-us&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1

2006-09-04 03:04:35 · answer #2 · answered by Anonymous · 0 0

MyClass *obj = new MyClass();
obj->doit();

How's that? -> is it.

2006-09-04 03:21:02 · answer #3 · answered by Andy T 7 · 0 0

fedest.com, questions and answers