I have a challenge
Write a function prototype for a function sum which returns sum of the 2 integers a
and b passed to it as a parameter.
Share
I have a challenge
Write a function prototype for a function sum which returns sum of the 2 integers a
and b passed to it as a parameter.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Explanation:
int fsum(int a, int b); // function prototype
int s=fsum(a,b); // function call
int fsum(int a, int b) //function definition
{
int s=a+b;
return s;
}
Verified answer
[tex]\textsf{\large \textbf{Function Prototype}}[/tex]
[tex]\texttt{int sum(int a, int b);}[/tex]