C++ Coding Question, Fill the void function void passReference(int *n1, int *n2, int *n3) { // Write your code here } Ro

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

C++ Coding Question, Fill the void function void passReference(int *n1, int *n2, int *n3) { // Write your code here } Ro

Post by answerhappygod »

C++ Coding Question, Fill the void function
void passReference(int *n1, int *n2, int *n3)
{
// Write your code here
}
Rounding to nearest 10 and rotating once clockwise
In this coding exercise, you are asked to write the body of afunction called passReference, which takes three integers byreference, round off each number to the nearest 10, and thenright rotate all the numbers clockwise only once.
For example, if variables a, b,and c contains the following values:
Then values of variables after callingthe passReference(&a, &b, &c) will be:
Sample inputs
Sample outputs
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply