Quitter un programme immédiatement

Author:


Download

 
/*
void exit ( int status  );
 
*/
 
  #include 
  #include 
 
  int main(void)
  {
    char choice;
 
    do {
      printf("Taper un caractère: ");
      choice = getchar();
	    printf("Le code ASCII %dn",choice);
	  if (choice=='q')
             exit(0);
    } while(true);
 
    return choice;
  }