+ 1

why do we need to declare pointers?

why do we declare pointers to store address, cant we store address in any other variable which is not pointer using the & operator?

19th Oct 2016, 9:09 AM
Mayank
Mayank - avatar
1 Antwort
0
no, it is how it works. the declaration defines what type of address it is savi g ....live integer pointer for integer , obj pointer for obj class ... after u get the address u can save it as ur wish in any int or long variable as all the addresses are int or long ....based on 32 bit or 64 bit
21st Oct 2016, 9:22 PM
PANKAJ KUMAR
PANKAJ KUMAR - avatar