#include<stdio.h>
int add(int a,int b);
int main(void)
{
int a,b,c;
scanf("%d%d",&a,&b);
c=add(a,b);
printf("sum is %d",c);
return 0;
}
int sum(int a,int b);
{
int s;
s=a+b;
return s;
}
After i compile this program,it is showing me an error in the 12th line saying"expected unqualified if before '{'."
I've seen similar questions like this I'm not satisfied with the answers given by them.
Please someone help me.
Thanks in advance...