doubleIt is a function that takes one argument and returns no value. The argument is a pointer to int. The function doubles the 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.

doubleIt is a function that takes one argument and returns no value. The argument is a pointer to int. The function doubles the 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.

LANGUAGE: C++

CHALLENGE:

doubleIt is a function that takes one argument and returns no value. The argument is a pointer to int. The function doubles the 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.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level