ソースを参照

test return from function and printf %d conversion

master
Ian Piumarta 3ヶ月前
コミット
12fa7c1de6
1個のファイルの変更7行の追加4行の削除
  1. +7
    -4
      test.txt

+ 7
- 4
test.txt ファイルの表示

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

読み込み中…
キャンセル
保存