title: Default values of int when not initialized in c. why do i get different outputs?
body: <p>i was just trying to check the default value of int and char when not initialised in c.
  my problem is that i get two different outputs when i use clrscr() to clear the screen between 2 runs.could someone explain this behavior to me?
  here is the code</p>
  
  <pre><code>void main()
  {
  
  int i;
  char c;
  printf("%d %c",i,c);
  }
  </code></pre>
  
  <p>output: 0 </p>
  
  <pre><code>void main()
  {
  int i;
  char c;
  clrscr();
  printf("%d %c",i,c);
  
  }
  </code></pre>
  
  <p>output:-29542   //some garbage value which is what i was expecting in both cases</p>