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
According to the Bureau of Labor Statistics, how
Vladimir79 [104]

Answer:

one million

Explanation:

took test

7 0
3 years ago
Write a query to show the price reduced by 10% for all products that are tables or entertainment centers with a standard price g
IceJOKER [234]

Answer:

Below is the required code:

Explanation:

SELECT Product_Finish AS "Desk Finish",

avg(Standard_Price) AS "Average Price"

FROM Product_T

WHERE "Average Price">200

ORDER BY "Average Price" DESC;

8 0
4 years ago
Which of the following terms describes a type of useful and legitimate software that is distributed by a developer where they do
brilliants [131]

Answer:

freeware

Explanation:

a freeware is a software that is available free of charge but is not distributed with the source code.

6 0
3 years ago
Leah is now in the Backstage view. Which option should she use to access a blank presentation? Info New Open Options
nekit [7.7K]

Answer:

She Should use New

7 0
3 years ago
Which of the following factors put you at risk for injury?
Monica [59]

Answer:

Prolonged exposure to vibration

Long periods of localized pressure

Explanation:

Repetitive motion is certainly not harmful, but prolonged repetitive motion can be a cause for injury. This is because if you are in repetitive motion for a long time, you exert a lot of force on your body, and that is certainly going to effect your body. And after a certain limit, even death can be a case. Hence, one should be very concerned about the time limit while their body goes through the repetitive motion.

However, neutral position we are always safe, as it’s an ideal position, as in this position, the work done is zero. Work done= force x displacement. And displacement in neutral position is zero. Hence, zero energy is lost. Hence, we are safe in this position.

Hence the above answer.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following commands is more recommended while creating a bot?
    9·1 answer
  • The ability to memorize well is an example of
    6·2 answers
  • Assuming you have a TCF free student checking account, how many maximum overdraft fees can you incur in one day?
    12·1 answer
  • Using the Sakila database, create a query that displays the film title, description, as well the actor first and last name for a
    12·1 answer
  •  Which device containing sensors send signals to the computer whenever light changes are detected? 
    11·1 answer
  • Attribute variables have the same meaning as participants variables. is this true or false?​
    14·1 answer
  • Anyone play Ps4 and wanna run up some warzone or Gta? Im M 16 so dont be a creep... :) ill mark brainliest if you drop gamertag
    8·2 answers
  • Define the term visual as used in visual programming
    9·1 answer
  • Question 5 / 15
    11·2 answers
  • To set up scenarios,then set up a list, then set up the reference cell. to set up the cells that display the output results from
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!