C++ Institute CPA - C++ Certified Associate Programmer CPA-21-02 Question # 28 Topic 3 Discussion

C++ Institute CPA - C++ Certified Associate Programmer CPA-21-02 Question # 28 Topic 3 Discussion

CPA-21-02 Exam Topic 3 Question 28 Discussion:
Question #: 28
Topic #: 3

What happens when you attempt to compile and run the following code?

#include

using namespace std;

int min(int a, int b);

int main()

{

int b=10;

b = min(5,20);

cout << b;

return 0;

}

int min(int a, int b)

{

if (a

return(a);

else

return(b);

}


A.

It prints: 10


B.

It prints: 20


C.

It prints: 5


D.

It prints: 0


Get Premium CPA-21-02 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.