Changes between Initial Version and Version 1 of Ticket #13731, comment 95


Ignore:
Timestamp:
11/30/12 08:08:20 (7 years ago)
Author:
nbruin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13731, comment 95

    initial v1  
    2323}}}
    2424So if I have my hands on an instance of a "pointer" variable, I can get the size of the structure pointed to by dereferencing. However, if I want to get this straight from the pointer type there doesn't seem to be a syntax for it. `sizeof(*pointer)` gives an error ... How do you get that information?
     25
     26'''SOLVED:'''
     27{{{
     28  printf("sizeof(*(pointer)NULL)=%d\n",sizeof(*(pointer)NULL));
     29}}}