answersLogoWhite

0


Best Answer

void printStarts (void);

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

void printStars (void);

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you Write a function prototype for a function named printStars that accepts no arguments and returns no data?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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);


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).


Design a function named max that accepts two integer values as arguments and returns the value that is greater of the two For example if 7 and 12 are passed as arguments to the function the function?

The function already exists in PHP and is even called max(); Otherwise use: function max ($one, $two) { return $one > $two ? $one : $two; }


When do you need to use default arguments in a function?

We declare (not use) default arguments in a function whenever the default values cover the majority of calls to that function. We use default arguments in order to simplify those calls and thus reduce the verbosity of our calling code, thus making it easier to call the function.


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.

Related questions

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);


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).


Write a function prototype named test that accepts two parameters an integer and character and returns a float?

float test(int, char);


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.


Design a function named max that accepts two integer values as arguments and returns the value that is greater of the two For example if 7 and 12 are passed as arguments to the function the function?

The function already exists in PHP and is even called max(); Otherwise use: function max ($one, $two) { return $one > $two ? $one : $two; }


When the supreme court accepts a case it receives written documents and hears?

Briefs.............and hear oral arguments


When do you need to use default arguments in a function?

We declare (not use) default arguments in a function whenever the default values cover the majority of calls to that function. We use default arguments in order to simplify those calls and thus reduce the verbosity of our calling code, thus making it easier to call the function.


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 happens before Supreme Court hears oral arguments?

When the Court accepts a case, each side sends the Court a brief and detailed written report supporting its side of the case.


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 am pass arguments in public static void main?

By using command line arguments we can pass values to the static void main method at the time of running the Java class. For example: if Class name is A,then to run this class and accepts command line then run this by using below line java A <argument1> <argument2> ....


What is a no args constructor?

No args means no arguments. Just like any regular method, a constructor can have zero or more arguments.No args means no arguments. Just like any regular method, a constructor can have zero or more arguments.No args means no arguments. Just like any regular method, a constructor can have zero or more arguments.No args means no arguments. Just like any regular method, a constructor can have zero or more arguments.