Answer to Question #13634 in C++ for Chad Dylan Cooper
Give an example of a function prototype. From your example, identify the return type, the function name and the argument list.
1
2012-08-30T09:24:49-0400
int isprime(int value)
{
int x,j;
x=1;
& for (j=2 ; j<value; j++)
{ if ((value%j)==0) x=0; }
& if(x!=0) return 1;
& else return 0;
}
Here the return type is integer, the function name is "isprime" and the argument list is "int value".
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment