Conversion of integer pointer to integer

后端 未结 4 704
春和景丽
春和景丽 2021-01-17 21:43

Tried following code to check what happens when we convert integer pointer to a integer .

 #include
 #include
 int main()
 {
          


        
4条回答
  •  野的像风
    2021-01-17 22:10

    135680008 is the address in decimal (it would be 0x8165008 in hex) to which p is pointing: the address of the memory area allocated with malloc.

提交回复
热议问题