#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int Add(int x, int y)
{
int z = x + y;
return z;
}
int main()
{
int num1 = 10;
int num2 = 20;
int sum = 0;
sum = Add(num1, num2);
printf("得出 %d\n", sum);
return 0;
}自定义加法函数Add
原文:https://blog.51cto.com/14893161/2516466