pointer default value .?

前端 未结 4 1192
生来不讨喜
生来不讨喜 2020-12-03 05:52

Look,

  typedef struct jig 
   { 
         int *a;
         int *b;
   }temp;

now stage 1 :

temp *b;
b= (         


        
4条回答
  •  无人及你
    2020-12-03 06:10

    This is completely operating system dependent, there's no telling where pointers will be pointing in what case, since that isn't specified. You should always set your pointers to NULL no matter what.

提交回复
热议问题