answersLogoWhite

0


Best Answer

float test(int, char);

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a function prototype named test that accepts two parameters an integer and character and returns a float?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

C plus plus Error Too many arguments in function call?

The function prototype (declaration) determines the number and type of arguments a function will accept. If the number or type of arguments passed to a function do not agree with its prototype, the compiler will notify you of the error. That is, if the function only accepts one parameter, you cannot call the function by passing two or more arguments, since no such prototype exists. The compiler makes a best guess on which function you were trying to call (by the name you provided) and notifies you that the number or type of arguments do not agree with the available prototypes. If the function is your own function, you can include the additional parameters as default values and re-implement the function to make use of those parameters, or you can overload the function to provide a completely new implementation that accepts the additional parameters. The new implementation may call the original implementation and embellish that implementation with its own implementation, or it can provide a completely separate implementation. Note that no two functions can have the same name and signature within the same namespace. Every prototype must be unique and cannot differ by return type alone. That is, the number and/or type of arguments must differ in some way, with no ambiguity, so the compiler knows which function you are actually calling (as determined by the prototype).


How do you Write a function prototype for a function named printStars that accepts no arguments and returns no data?

void printStarts (void);


How would you write a function prototype for a function named calcAreaReact that accepts two arguments width and length and returns the area.?

double calcAreaRect (double a, double b);


How to Write a C function which accepts two integer parameters a and b and returns the larger of the two?

This smells like homework, so I'll only give you pseudo-code: decimal returnLargest(decimal a, decimal b) is a > b ? then, return a, else, return b;


What is function calling in c plus plus?

Function calling is where your code branches off to execute a function and then returns to the instruction following the call. The function may also return a value that can be stored and/or processed by the code that called it. Functions allow common code to be separated from the code that uses the common code, thus reducing maintenance (the code in the function is written once, rather than every time it is required).


What is the program in Linux that accepts start time and end time as parameters?

ipacsum does, although 99% of Linux distributions don't actually use or contain this program.


What is meant by void abcint?

void abc(int); is a function declaration. The declared function has no return value, is named abc and accepts one integer argument by value.


What is a symbol of Bontsha the silent?

A common symbol associated with the character Bontsha the Silent is a character who accepts suffering without protest or resistance, representing resignation and passivity in the face of adversity.


What is the prototype of scanf in c programmin?

int scanf(char* format, ...); the format accepts the format specifier string, the elipsis operator accepts the variable list scanf("var type var type ...", &var, &var, ...); example: int num1, num2, num3; scanf("%d %d %d",&num1,&num2,&num3); Is that what you were looking for? Maybe this can help also...


How do you use pow function in c?

Either you can use the pre defined function "pow" in the <math.h> header file OR you can make a user defined function to do the same operation. 1.Using the pre defined function in <math.h> : The function is a of datatype double and accepts only values in double. So, prototype declaration is: double pow(double x,double y); Pass the values to the function and it'll return the value of xy. In the calling function it can be declared as: double power=pow(x,y); 2.USER DEFINED FUNCTION: double power(double x,int y); int main() { double x,result; int y; cout<<"\nEnter the base: "<<; cin>>x; cout<<"\nEnter the exponential power: "; cin>>y; result=power(x,y); cout<<"The result of x to the power y is: "<<result; return 0; } double power(double x,int y) { for(int i=0;i<=y;i++) { x*=x; } return x; }


What is the use of getchar?

gets()Reads characters from stdin and stores them as a string into str until a newline character ('\n') or the End-of-File is reached.The ending newline character ('\n') is not included in the string.getchar()Returns the next character from the standard input (stdin).It is equivalent to getc with stdin as its argument. === ===


Does a function that takes a value or values and performs an operation return a result to the caller?

Not necessarily. A function that accepts one or more arguments may process those arguments but need not return any value to the caller. In this case the function simply returns void.