Getting the size of the data of a Pointer

前端 未结 5 677
借酒劲吻你
借酒劲吻你 2020-12-10 06:52

I tried the following code in order to see how to get size of the data of a pointer:

 #include 
 #include 
 #include 

        
5条回答
  •  生来不讨喜
    2020-12-10 07:57

    A pointer only points to where the data begins. It doesn't know anything about the size of the data.

提交回复
热议问题