Quitter un programme immédiatement

Author:


{filelink=13204}


/*
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;
  }

Leave a Reply

Your email address will not be published. Required fields are marked *