title: initializing a typedef struct pointer to NULL
body: <pre><code>#include&lt;stdio.h&gt;
  
  typedef struct student{
  int id;
  int mark;
  }stud;
  
  typedef struct stud *s1;
  
  void main(){
  s1 = NULL;
  printf("hi");
  }
  </code></pre>
  
  <p>Please help me how to initialize struct pointer to NULL. i get the following error during compilation.  </p>
  
  <pre><code>graph.c: In function ‘main’:  
  graph.c:11:04: error: expected identifier or ‘(’ before ‘=’ token
  </code></pre>