Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdarg.h>
- #include <stdio.h>
- #define program(arguments) void main(void) {arguments;}
- int add__(int number, ...) {
- int sum = 0;
- va_list arguments;
- va_start(arguments, number);
- for(int i = 0; i < number; i++) {
- sum += va_arg(arguments, int);
- }
- va_end(arguments);
- return sum;
- }
- #define __add add__
- #define _add add__
- #define add add__
- program(
- printf("%d", add(2, 3, 3))
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement