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
adell [148]
3 years ago
11

Write a function addOne that adds 1 to its integer referenceparameter. The function returns nothing.

Computers and Technology
1 answer:
Alekssandra [29.7K]3 years ago
5 0

Answer:

void addOnefunction(int referenceparameter){

   

   referenceparameter = referenceparameter + 1;

}

Explanation:

The function is the block of the statement which performs the special task.

Syntax:

type name(parameter_1, parameter_2,...){

     statement;

}

first, we define the return type of the function like int which return an integer value, a float which returns decimal value or void which returns nothing.

then, define the parameters in the function which takes the value from the calling function and then we can use that parameter in the statement.

we can define any one of the parameters, there is no restriction for define the parameter.

we create the function addOnefunction which return is void and declare the one parameter referenceparameter, integer type.

then, add the parameter with 1 and store in the same parameter.

For adding, we can use the operator '+'.

like,

 referenceparameter = referenceparameter + 1;

You might be interested in
The printing press helped spread the ideas of the Renaissance.<br> a. True <br> b. False
guajiro [1.7K]
The answer is a. True

The printing press did help spread the ideas of the Renaissance, as it could spread ideas easily, quickly, and in different languages.

6 0
4 years ago
What is software?
bogdanovich [222]

Answer:

B

Explanation:

3 0
3 years ago
Read 2 more answers
When a program lets the user know that an invalid menu choice has been made, this is an example of?
kolezko [41]

The question has the multiple choices below

A) Input validation
B) output correction
C) compiler criticism
D) output validation

The answer is (A) Input validation

Also known as data validation, it is the correct and proper testing of any input supplied by an application or a user. It prevents wrongly formed data from entering the system. Applications should be able to check and validate every input entered into the system since it is hard to detect a malicious user trying to gain entry into software.










5 0
3 years ago
Can we opne a website form PowerPoint slide ​
Phoenix [80]

Answer:

Yes

Explanation:

Type in the link, play the presentation and click the link. Or hover over the link and press ctrl + click at the same time. (Don't know if I got the last part right)

3 0
4 years ago
Read 2 more answers
The objective is to work with your partner to fix the HTML bugs so that none of the code is pink. In general, how do I change HT
Elan Coil [88]

Answer:

Click inspect then go to change color

Explanation:

there you go have a nice day!

8 0
3 years ago
Other questions:
  • This question involves the creation of user names for an online system. A user name is created based on a user’s first and last
    13·1 answer
  • Match the job skills with the correct job role.
    12·1 answer
  • Brock wants to use several images on his hiking blog. However, the images are making his pages load very slowly. Explain to Broc
    6·1 answer
  • Write the pseudocode for linear search, which scans through the sequence, looking for ν. Using a loop invariant, prove that your
    14·1 answer
  • Deleting a footnote or endnote reference mark in a document only deletes the reference mark but not the actual footnote or endno
    14·1 answer
  • What is the formula that calculates the session fee for members in excel
    13·1 answer
  • Which of the following about Java arrays is true?
    14·1 answer
  • List three examples of telescopes that detect different types of electromagnetic radiation?
    11·1 answer
  • Dividing a hard drive into multiple sections is known as partitioning
    5·1 answer
  • Discuss different ways to respond to errors, such as notifying the user onscreen, writing to an error log, notifying the develop
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!