C/C++: Exemple d’utilisation d’un pointeur sur le type char comme paramètre d’une fonction

Author:

 pointeur
Download

#include 

void afficher(char *str)
{
  while(*str)
    printf("%c", *str++);
}
int main(int argc, char *argv[])
{
   char data[25]="Bienvenu sur mon site";

	   afficher(data);

  return 0;
}

Leave a Reply

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