<分区>
我有一个简单的c程序
#include <stdio.h>
int add(int, int);
int add (int a, int b) {
return a+b;
}
int main(void) {
int a, b, c;
printf("Enter the 1st number ");
scanf("%d",&a);
printf("Enter the 2nd number ");
scanf("%d",&b);
c = add(a, b);
printf("The value is %d ", c);
return (0);
}
我正在用 cc main.c
编译程序
当我使用 ./a.out
运行程序时
我在控制台中没有得到任何输出。