Vérifier si le caractère est imprimable avec ‘isprint()’

Author:


Download


  #include 
  #include 

  int main(void)
  {
    char ch;

    for(;;) {
      ch = getchar();
      if(isprint(ch)){
          printf("%c est un caractère imprimablen",ch);
      }
	  // Pour quitter, taper 'q'
      if(ch == 'q'){
          break;
      }
    }

    return 0;
  }

Leave a Reply

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