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...
The _________profile setting specifies the firewall settings for use when connected to a private network location, such as a home or office
a. Private b. Public c. Domain d. Workgroup
Computer Science & Information Technology
_________ will integrate with the operating system of a host computer and monitor program behavior in real time for malicious actions.
A. Fingerprint-based scanners B. Behavior-blocking software C. Generic decryption technology D. Heuristic scanners
Computer Science & Information Technology