请问哪里有问题?
#include <stdio.h>
/* 考虑一下哪个输出该用无参函数哪个输出该用有参函数呢? */
int learing()
{
printf("%s\n","小明在慕课网上学习");
return 0;
}
int number(int n)
{
printf("小明在慕课网上学习了%d门课程",n);
return 0;
}
int main()
{
printf learing();
printf number(5);
return 0;
}
错误提示:hello.c: In function 'main':
hello.c:16:12: error: expected ';' before 'learing'
printf learing();
^~~~~~~
hello.c:17:12: error: expected ';' before 'number'
printf number(5);
^~~~~~