Browse Source

test return from function and printf %d conversion

master
Ian Piumarta 3 months ago
parent
commit
12fa7c1de6
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      test.txt

+ 7
- 4
test.txt View File

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

Loading…
Cancel
Save