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
Two categories of payroll deductions are required deductions and ___ deductions.
alukav5142 [94]

Answer:

1.)

- C.) Optional

2.)

- D.) Short-term Notes Payable

3.)

- A.) Payroll Sinking Funds

4.)

- A.) A Formal Timekeeping System Is Used

(I'm possibly wrong on the last question, if so then my apologies and I wish you the best of luck.)

3 0
2 years ago
Read 2 more answers
What is the effects of computer and internet attacks​
ZanzabumX [31]

Answer:

ads, damage, or bugs

Explanation:

7 0
2 years ago
Read 2 more answers
According to the video, which tasks do Police Patrol Officers perform? Select all that apply.
krek1111 [17]

Answer:

The answer is B, E, and F

Explanation:

4 0
2 years ago
Read 2 more answers
Which technology concept uses computer resources from multiple locations to solve a common problem?
kramer

Answer: Sounds like you are talking about “Distributed memory systems” which use multiple computers to solve a common problem, with computation distributed among the connected computers (nodes) and using message-passing to communicate between the nodes.

8 0
3 years ago
Which of the following grinding methods is best suited to a shorter cylindrical workpiece?
schepotkina [342]
well i dont know but i would go with b :D

4 0
3 years ago
Other questions:
  • While browsing through the mall, you are given samples of the latest perfumes from different designers. This is an example of wh
    14·1 answer
  • Is it possible to uninstall a program that's on your phone from computer?
    8·1 answer
  • How much days are in a year
    9·2 answers
  • What will the declaration below do to its target?
    9·1 answer
  • Select the correct answer.
    13·1 answer
  • Explain different types of networking-based attacks
    5·1 answer
  • Overview In this assignment, you will gain more practice with designing a program. Specifically, you will create pseudocode for
    7·1 answer
  • X274: Recursion Programming Exercise: Cannonballs Spherical objects, such as cannonballs, can be stacked to form a pyramid with
    7·1 answer
  • Which of the following is an example of two-factor authentication?
    10·2 answers
  • Which of the following can be termed ‘application software’?​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!