mardi 13 décembre 2011

programme hello, world

Écrire un programme qui affiche hello, world.
Notions :
  • inclusion d'en-tête standard
  • passage de paramètres de fonction
  • printf
  • chaîne de caractères statique

/* Bonne réponse */
#include <stdio.h>
 
int main(void)
{
  (void)printf("hello, world\n");
  return 0;
}

Aucun commentaire:

Enregistrer un commentaire