What is the datatype of pointer in c?

后端 未结 6 2012
别那么骄傲
别那么骄傲 2021-02-04 08:56

are pointers of integer or unsigned datatype?

6条回答
  •  孤城傲影
    2021-02-04 09:35

    What is the data type of pointer in C? is the unique question.

    One should not deviate from the question to give any kind of explanation on pointers as the answwer to the question?

    Answer.

    1. What is the data type name of a set of intergers in C? The name is int , which is the name of the set comprising of all the permissible integers. Hence we declare int x; where x can assume any value from the set.

    2. Similarly , What is name of the set of all the permissible addresses or pointers? .The set name can only be the character '*' as I fathom, though no explanation is seen anywhere in C language narratives.

    Hence we declare the pointer variable as *x; where * is the data type name. Otherwise why should a pointer data type is thought about and brought under the user defined data type. Since there are all the RAM cells, the '*' data type forms a subset of permissible and accebile memory cells. Hence this is a data type name of a set of pointers.

    The int is the modifier as in signed char c; where signed is the modifier in C.Hence we may have int *x; to mean that data in the location is an integer which is a necessary information for the compiler.

    C speaks about pointer data type as the user data type. Perhaps it is wrong to consider the pointer data type as the user data type since the user has no control over the set of pointers in the set, going by the basic concept of int is the set name, float is the set name, char is the set name of haracters, double is the set name of floats of high precision numbers, colour is the data type name in enum colour = { blue, red, yellow).

提交回复
热议问题