+ 1
Why are pointers defined as int data type?
What other variable types is the int type used for, other than actual integers
1 Answer
+ 4
Pointers can have any type, even void which is the absence of a type. int* (pointer to int) informs the compiler that the value stored at the memory address is an integer. Unless the type of the value is specified, the data at the memory address can't be used