All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: a1012112796 <1012112796@qq.com>
29 lines
384 B
C
29 lines
384 B
C
#include <stdio.h>
|
|
|
|
int add(int a, int b);
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
int i;
|
|
printf("hello word!\n");
|
|
if (argc > 1)
|
|
{
|
|
for(i = 0; i < argc; i++)
|
|
{
|
|
printf("argv[%2d] = %s\n",i,argv[i]);
|
|
}
|
|
}
|
|
printf("add 1 + 2 = %d \n", add(1,2));
|
|
return 0;
|
|
}
|
|
|
|
int add(int a, int b)
|
|
{
|
|
return a + b;
|
|
}
|
|
|
|
int a1()
|
|
{
|
|
return 1;
|
|
}
|