What is the datatype of pointer in c?

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

are pointers of integer or unsigned datatype?

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-04 09:49

    In C, pointer can access the variables of any data types. The pointer should be declared with the data type of the variable the pointer will be pointing. To print the address of the pointer in hexadecimal format use %p and to print the address in other forms use %u.If the pointer is going to be used to display value of pointing variable, use *pointer_name and just for address use pointer_name.

提交回复
热议问题