What is the datatype of pointer in c?

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

are pointers of integer or unsigned datatype?

6条回答
  •  梦如初夏
    2021-02-04 09:34

    Pointers to any datatype either it may be of char/int/float/double/... are unsigned integers only.

    Reason: Since a pointer stores the address, which is a location in computer memory, it's always positive,can't be negative.

提交回复
热议问题