Ara
What is a Pointer(*)?
- koraylimancre
- 14 Oca 2022
- 1 dakikada okunur

Pointer simply is an integer value that is an adress of some memory location. Since memory adresses are in hexadecimal format, you need to cast it to int if you need the adress in decimal. Pointers may have types such as: int, string, float or anything(classes, structs). You can also use void as a type but in this case since the compiler doesn't know what is type of the entity that the pointer points to you cannot print or edit the entity.
Comments