title: What happens if characters are assigned into int variables in C
body: <p>I am trying to get a integer value from <code>argv[1]</code>.</p>
  
  <p>I want to know what happens if the user inputs a character so that I can avoid it. I tried '\0' and currently this doesn't work.</p>
  
  <pre><code>int main(int argc, char* argv[]){
      int MAX_SIZE;
      MAX_SIZE=atoi(argv[1]);
  while(MAX_SIZE=='\0'){
      printf("plz input in correct format: ");
      scanf("%d", &amp;MAX_SIZE);}
  </code></pre>
  
  <p>Any help would be appreciated.</p>