Char

Bonjour
comment fait scanf d'un caractere en langage c svp !!

1 réponse

  1. Salut,

    Un caractère :

    char ob;
    scanf("%c", &ob);

    Une chaîne de caractère:

    char ob[20];
    scanf("%s", ob);

    Merci

    Dieu n'a fait qu'ébaucher l'homme, c'est sur terre que chacun se crèe