When is a Constructor called?
Which of the following is not an in-place sorting algorithm?
Polymorphism is used at the time of implementing _____.
Which of the following sorting algorithm implementations is similar to that of an insertion sort?
What type of array is generally generated from command-line arguments?
What does the C++ statement void a; mean?
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
void a = 10, b = 10;
int c;
c = a + b;
cout << c;
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
struct sec
{
int a;
char b;
};
int main()
{
struct sec s ={25,50};
struct sec *ps =(struct sec *)&s;
cout << ps->a << ps->b;
return 0;
}
main( ) {
int i; for(i=2; i<=10; i++)
{
switch( i )
{
case 2: printf(“O”);
continue;
case 3: break;
case 4:
case 5:
printf(“H”);
break;
default: printf(“K”);
}
}
}
#include