From 12fa7c1de6a467b7b23e9889f7c6cb9cf166f307 Mon Sep 17 00:00:00 2001 From: Ian Piumarta Date: Mon, 20 Jan 2025 18:05:04 +0900 Subject: [PATCH] test return from function and printf %d conversion --- test.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test.txt b/test.txt index 3618350..1d4aeee 100755 --- a/test.txt +++ b/test.txt @@ -1,11 +1,14 @@ -#!./main - -// -*- C -*- +#!./main -*- C -*- #include +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; }