What is the data type of pointer variables?

前端 未结 7 1383
栀梦
栀梦 2020-12-29 12:59

I refereed the following link,

Link1 Link 2

In the above link1 it was mentioned in answer that \"Pointers are of pointer type\".

I jus

7条回答
  •  佛祖请我去吃肉
    2020-12-29 13:25

    Pointer types are data types; they store pointer values.

    There is no one single pointer type; a pointer to int is a different type from a pointer to char, which is a different type from a pointer to double, which is a different type from a pointer to a 10-element array of int, which is a different type from a pointer to an 11-element array of int, etc.

    Different pointer types may have different sizes and representations; the only pointer types that are guaranteed to have the same sizes and representations are void * and char *.

提交回复
热议问题