You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cout<<"The sum of two numbers is: \n"<<sum(num1,num2)<<endl;
return 0;
}
// Here the a and b are formal parameters they take there value from actual parameters.
int sum(int a, int b){
int c=a+b;
return c;
}
// Q/A:
/*
Q. What are Function prototype?
A. Function prototype tells the compiler that if you haven't find the function that used in main() function yet still continue searching it is in the code.