1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| // hello.c, gcc -o arg_test hello.c
#include <stdio.h>
#include <stdlib.h>
void print_arg(int arg1, int arg2, int arg3, int arg4, int arg5, int arg6,
int arg7, int arg8){
printf("%d, %d, %d, %d, %d, %d, %d, %d
", arg1, arg2, arg3, arg4, arg5,
arg6, arg7, arg8);
return;
}
int main(){
print_arg(1,2,3,4,5,6,7,8);
}
|