How many parameters are required for the sort_heap function?
How is the <limits.h> header file represented in C++?
What header file must you #include with your program to use setw?
Which operator has right-to-left associativity in C++?
If the result overflows, the function returns the value of the macro HUGE_VAL, carrying the same sign except for the tan function as the correct value of the function.
What is the order of Destructors call when an object of the derived class B is destroyed, provided class B is derived from class A?
How many times is 'Abekus' printed to the console in the following code?
int main()
{
int a = 0;
while(a == 0)
{
printf("Abekus");
}
return 0;
}
What will be the output of the following C++ code?
#include <stdio.h>
#include<iostream>
using namespace std;
int main()
{
int a = 5, b = 10, c = 15;
int arr[3] = {&a, &b, &c};
cout << *arr[*arr[1] - 8];
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
enum colour
{
green, red, blue, white, yellow, pink
};
int main()
{
cout << green<< red<< blue<< white<< yellow<< pink;
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout << extent<remove_extent<string[10][20]>::type>::value;
cout << extent<remove_extent<string[10][20][30]>::type>::value;
return 0;
}