1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lana66690 [7]
4 years ago
7

Write the function prototype for a function called showSquare. The function should have a single parameter variable of the int d

ata type and a return type of void.
Computers and Technology
1 answer:
xeze [42]4 years ago
8 0

Answer:

void showSquare(int param){

}

Explanation:

In C++ programing language, this is how a function prototype is defined.

The function's return type (In this case Void)

The function's name (showSquare in this case)

The function's argument list (A single integer parameter in this case)

In the open and closing braces following we can define the function's before for example we may want the function to display the square of the integer parameter; then a complete program to accomplish this in C++ will go like this:

<em>#include <iostream></em>

<em>using namespace std;</em>

<em>void showSquare(int param);</em>

<em>int main()</em>

<em>{</em>

<em>    showSquare(5);</em>

<em>    return 0;</em>

<em>}</em>

<em>void showSquare(int param){</em>

<em>int square = param*param;</em>

<em>cout<<"The Square of the number is:"<<endl;</em>

<em>cout<<square;</em>

<em>}</em>

You might be interested in
Why is the human immunodeficiency virus so deadly?
damaskus [11]

<em> </em><em>I</em><em> </em><em>think</em><em> </em><em>the</em><em> </em><em>answer</em><em> </em><em>is</em><em> </em><em>D</em><em>.</em>

<em>It</em><em> </em><em>kills</em><em> </em><em>the</em><em> </em><em>cells</em><em> </em><em>that</em><em> </em><em>make</em><em> </em><em>antibodies</em><em>.</em>

<em>Hope</em><em> </em><em>this</em><em> </em><em>will</em><em> </em><em>help</em><em> </em><em>u</em><em>.</em><em>.</em>

8 0
3 years ago
Two friends can share 100 songs from their Bluetooth enabled mobile devices
Umnica [9.8K]

Answer:

A

Explanation:

If they are connected via bluetooth, you can share unlimited amounts of anything.

6 0
3 years ago
HELP!!!
jeyben [28]

Answer:

A. a tool tip

Explanation:

6 0
3 years ago
Read 2 more answers
Inside which command group will a user find the ability to configure Outlook rules used to organize a mailbox?
Sauron [17]

Answer:

You can use Outlook to perform diffrent aspects

In the toolbox command

3 0
3 years ago
Does anyone know a NC wise owl password I can use, it's an emergency!! I can't ask my school because they are closed and I need
snow_tiger [21]
The password would be Apple 123
6 0
3 years ago
Other questions:
  • After doing the route tracing to a particular IP addresses, paste the path of IP addresses that were taken from your IP address
    13·1 answer
  • How many inputs are included in the following requirement? REQUIREMENT: Write a program that asks the employee for their age. Th
    6·1 answer
  • Are mechanical keyboards more expensive than membrane keyboards?
    9·2 answers
  • Collaboration, listening, and negotiating are considered __________ skills.
    7·2 answers
  • The carbon-14 isotope is important because it allows scientists to determine the ___________ of an organic sample.
    14·1 answer
  • What information and options can be found on the File tab?
    8·1 answer
  • Who here has a crush on jk from bts but feels more mature than him
    10·2 answers
  • Which engineer may design a GPS for a vehicle?
    15·1 answer
  • How to test someone elese internet speed from a distance
    15·1 answer
  • Artificial intelligence (ai) in perspective is a complex and interdisciplinary field that involves several specialties, includin
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!