What is the data type of a pointer in C? This is a unique question.
You should not deviate from the question in order to give any explanation to the pointers as an answer to the question?
Answer.
What is the data type name for the intergers set in C? The name is an int, which is the name of the set containing all valid integers. Therefore, we declare int x; where x can take any value from the set.
Similarly, what is the name of the set of all valid addresses or pointers ?. The name of the set can only be the symbol "*", as I understand it, although no explanation is found anywhere in the descriptions in C.
Therefore, we declare a pointer variable as * x; where * is the name of the data type. Otherwise, you should think about the data type of the pointer and enter it under the user-defined data type. Since there are all RAM cells, the * * data type forms a subset of the valid and accebile memory cells. Therefore, this is the name of the data type for the set of pointers.
int is a modifier, as in signed char c; where signed is a modifier in C.Hence, we can have int * x; means that the data in the location is an integer, which is the necessary information for the compiler.
C talks about the data type of the pointer as the type of user data. It may be wrong to consider the pointer data type as the type of user data, since the user does not have control over the set of pointers in the set, following the basic concept int is the name of the set, float is the given name, char is the given character name, double is the given name of high-precision floating-point numbers, color - name of the data type in color enum = {blue, red, yellow).
user2606242
source share