What is the output of the following code fragments?

int trial( int& a, int b)
{
if(b > a)
{
a=b;
return –a;
}
else
{
return 0;
}
}

float x=0, y=10,z;
z=trial(y,x);
cout << z << " " << x <<" " << y << endl;
a. –10 0 0
b. 0 10 0
c. 10 0 0
d. 0 0 10


d. 0 0 10

Computer Science & Information Technology

You might also like to view...

How do you get to the Backstage view?

A) Home tab B) Insert tab C) Design tab D) File tab

Computer Science & Information Technology

Which of the following port numbers is used by the Character Generator?

A. 21 B. 7 C. 19 D. 53

Computer Science & Information Technology

In object-oriented terms, an original class is called the ________ class.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Jan needs to build the business case for the implementation of a new firewall. She's confident that she can show that the new firewall will require less attention from the security staff and will result in significant manpower savings. She does not expect that there will be any change in the security posture of the organization based on this implementation, What type of approach is best suited to building the business case for this firewall?

a. Qualitative b. Quantitative c. Combination of qualitative and quantitative

Computer Science & Information Technology