Given the following function definition

void shift(int& a, int&b)
{
a=b;
b=a;
}

What is the output after the following function call?
int first=0, second=10;
shift(first, second);
cout << first <<" "<< second << endl;
a. 0 10
b. 10 0
c. 0 0
d. 10 10


d. 10 10

Computer Science & Information Technology

You might also like to view...

The __________ function would produce the sequence 1, 5, 6 when passed the sequences 1, 2, 3, 4, 5, 6 and 2, 3, 4, 7 as first/second and third/fourth arguments, respectively.

a. set_intersection b. set_difference c. set_union d. set_symmetric_difference

Computer Science & Information Technology

Explain the advantages of virtualization with respect to giving you freedom from hardware compatibility issues.

What will be an ideal response?

Computer Science & Information Technology

Programs that are based on ________ graphics record your images on a pixel by pixel basis and will typically save files in formats such as JPG, GIF, and PNG.

A. PIM B. bitmap C. vector D. 3D

Computer Science & Information Technology

With ____, the computer uses each record's primary key field and a mathematical formula called a hashing algorithm to determine a unique address that identifies where the record is physically stored in the database file.

A. real-time organization B. indexed organization C. sequenced organization D. direct organization

Computer Science & Information Technology