From b7f49bdb73ff2ddf035ec82bcd39171fdd510b5a Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 10 Feb 2023 12:08:09 +0800 Subject: [PATCH] add ../examples/multi_retvals.c --- examples/multi_retvals.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 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; +} + -- 2.25.1