c语言小白请问错在哪?

#include
void pound(int n);
int main(void)
{
int times=5;
char ch='!';
pound(times);
pound(ch);
printf("the n is %d %d.\n",pound(times),pound(ch));
return 0;
}

 #include <stdio.h>

int pound(int n);
char Pound(char c);

int main(void)
{
    int times=5;
    char ch='!';
    pound(times);
    pound(ch);
    printf("the n is %d %c.\n",pound(times),pound(ch));
    return 0;
}
int pound(int n)   // 传入参数
{
    return n;  //返回参数
}

char Pound(char c)
{
    return c;
}

建议楼主看一下基本语法

pound函数只有prototype 没见具体实现啊。

pound函数没有返回值,在printf函数那里出错了

你pound函数光写个声明在这里有什么用啊! pound的具体实现在哪里?

你pound函数光写个声明在这里有什么用啊! pound的具体实现在哪里?

例如:
int pound(int n)
{
return n+n;
}

你只是声明了一个函数pound,没有实现这个函数