int sum(int n, ...) { int result = 0; for(int *ptr = &n; n > 0 ; n--) { result+= *(++ptr); } return result; }
Standard input is empty
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.3.0/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' clang: error: linker command failed with exit code 1 (use -v to see invocation)
Standard output is empty