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
Vadim26 [7]
3 years ago
9

doubleIt is a function that takes one argument and returns no value . The argument is a pointer to int . The function doubles th

e value that the argument points to and stores it back.savings is an int variable that has been declared and initialized .Write a statement that doubles the value stored in savings by invoking the function doubleIt . For example, if the value in savings was 7 before your statement , after your statement its value would be 14.
Computers and Technology
1 answer:
Mama L [17]3 years ago
8 0

Answer:

void doublelt(int *number)

{

*number=*number*2;

}

Explanation:

This exercise is for you to learn and understand the PASS BY POINTER syntax. The importance of this is that if you didnt use a pointer you would have to RETURN an int from the function. in that case the code would be:

int doublelt(int number)

{

number=number*2;

       return number;

}

Passing by pointer manipulates the value by going inside the memory and where it resides. Without the pointer, the function would create COPIES of the argument you pass and delete them once the function ends. And you would have to use the RETURNED value only.

You might be interested in
Which situation best describes the prosumer effect?
elena-s [515]

C

Explanation:

https://www.sciencedirect.com/science/article/pii/S2405844019356750

8 0
4 years ago
How to type this [attachment] type of symbol in ms word.​
nata0808 [166]

Explanation:

step 1: Type the normal letter A

step 2: Go to insert and press on equation with a pi sign on you far right.

step 3: Then press on accent, represented by a letter ä on your far right

step 4: on Accent you can choose the option that has an arrow on top of the block.

I hope this makes sense

:)

4 0
3 years ago
Read 2 more answers
In order to focus your presentation on people, you should
goldfiish [28.3K]
You should not be shy. be brave! #randompic

6 0
3 years ago
Read 2 more answers
In every programming language, when you access data stored in an array, it is important to use a ____ containing a value that ac
Stells [14]
Subscript

Reference: Chapter 5 of 'An Object-Oriented Approach to Programming Logic and Design's by Joyce Farrell
4 0
3 years ago
Why would an IT technician ever have to change out a computer’s motherboard?
castortr0y [4]
Here are a couple reasons:
Integrated Ports Gone Bad.
Motherboard is fried from electrical charge.
New features of updates.
Hope this helps.
7 0
3 years ago
Read 2 more answers
Other questions:
  • What is this file used for
    15·2 answers
  • Which access database object is best to use for the basis of a report when specific criteria must be applied to the report?
    12·2 answers
  • ____ is a general term that includes all products of the human mind, including original ideas.
    5·1 answer
  • Suppose you have a primary location in New York City where you main corporate servers are located. Just in case something happen
    5·1 answer
  • Which UML relationships should be used between a subclass and a superclass? For example, suppose there is an interface or abstra
    5·1 answer
  • RIGHT ANSWER GETS BRAINLEST
    5·1 answer
  • Which of the following is NOT an example of application software?
    8·1 answer
  • LAB: Count characters - methods
    10·1 answer
  • Carl wants to add two new characters to the extraterrestrial battleship game he's
    15·1 answer
  • What is the best description of an unbound control?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!