Here is a small function definition:
void f(int i, int &k)
{
i = 1;
k = 2;
}
Suppose that a main program has two integer variables x and y, which are given the value 0. Then the main
program calls f(x,y); What are the values of x and y after the function f finishes?
Consider a min heap, represented by the following array:
11,22,33,44,55
After inserting a node with value 66.Which of the following is the updated min heap?
If a max heap is implemented using a partially filled array called data, and the array contains n elements (n >
0), where is the entry with the greatest value?
Consider a min heap, represented by the following array:
10,30,20,70,40,50,80,60
After inserting a node with value 31.Which of the following is the updated min heap?
A compound data structure is the data structure which can have multiple data items of same type or of different types,which of the following can be considered compound data structure ?