From: yu.dongliang <18588496441@163.com> Date: Fri, 10 Feb 2023 04:08:09 +0000 (+0800) Subject: add ../examples/multi_retvals.c X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=b7f49bdb73ff2ddf035ec82bcd39171fdd510b5a;p=scf.git add ../examples/multi_retvals.c --- diff --git a/examples/multi_retvals.c b/examples/multi_retvals.c new file mode 100644 index 0000000..b888742 --- /dev/null +++ b/examples/multi_retvals.c @@ -0,0 +1,19 @@ +int printf(const char* fmt, ...); + +int, int ret3value(int i, int j, int k) +{ + return i, j; +} + +int main() +{ + int a, b, c; + + a, b = ret3value(1, 2, 3); + + printf("%d, %d\n", a, b); +// printf("%d, %d, %d\n", ret3value(1, 2, 3)); + + return 0; +} +