Explorar el Código

test return from function and printf %d conversion

master
Ian Piumarta hace 3 meses
padre
commit
12fa7c1de6
Se han modificado 1 ficheros con 7 adiciones y 4 borrados
  1. +7
    -4
      test.txt

+ 7
- 4
test.txt Ver fichero

@ -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;
}

Cargando…
Cancelar
Guardar