Does a pointer in .h automatically get set to NULL?
If I declare a pointer to a struct in .h for example:
my_struct_t *ptr;
... and then I check 开发者_运维技巧if(ptr==NULL) in the code, without actually setting ptr to NULL or allocating memory for
问答
阅读(0)