Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you anwser these C++ questions for me thanks, please make sure they are right. 1) When parameters are passed between the calling code and

Can you anwser these C++ questions for me thanks, please make sure they are right.

1) When parameters are passed between the calling code and the called function, parameters and arguments are matched by:

a. their relative positions in the parameter and argument lists b.they are not matched up at all c.their names d. their data types

2)

In the function declaration shown, the mechanism used to call this function is known as:

double pow(double base, double exp);

a. pass by name b. pass by name c. call by name d. pass by value

3) What is the value of choice after the following statements?

void getChoice(int& par_choice, in par_count);

int choice, count=3;

getChoice(choice, count);

void getChoice(int& par_choice, in par_count)

{

if(par_count<0)

par_choice =0;

if(par_count = 0)

par_choice=-1;

else

par_choice=99;

return;

}

a.-1 b. 99 c. 3 d. 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions