+ 1
What is the the different: 1. Ptr is an array of 12 pointers to integer. 2. Ptr is an array of 12 integer pointers?
1 Odpowiedź
0
I think sololearn must revise this question in code challenges session. Both option have similar meaning, and adopted in many programming books or authors.
Supposed we write:
int *ptr[12];
It means we are allocatting array of 12 pointer-to-integer or we are allocatting array of 12 integer-pointer or 12 pointer of integer data type.