I'm just wondering if this is a safe practice.
My compiler has no problems with this but I'm guessing that dereferencing a NULL pointer is unsafe.Code:#include <stdio.h> int main(int argc, char ** argv) { int * i_ptr = NULL; fprintf(stdout, "size: %lld\n", sizeof(*i_ptr));//How safe is it to deference a NULL pointer here to get the data size? return 0; }