Parcourir la source

test return from function and printf %d conversion

master
Ian Piumarta il y a 3 mois
Parent
révision
12fa7c1de6
1 fichiers modifiés avec 7 ajouts et 4 suppressions
  1. +7
    -4
      test.txt

+ 7
- 4
test.txt Voir le fichier

@ -1,11 +1,14 @@
#!./main
// -*- C -*-
#!./main -*- C -*-
#include <stdio.h>
int foo(int a)
{
return 42;
}
int main(int argc, char **argv)
{
printf("hello, world\n");
printf("hello, world %d\n", foo(argc));
return 0;
}

Chargement…
Annuler
Enregistrer