What does inheritance allow you to do?
What is the output of the following code?
int main()
{
printf("%c ", ["Abekus"]5);
return 0;
}
Which constructor function is designed to copy objects of the same class type?
For a given integer, which of the following operators can be used to “set” and “reset” a particular bit respectively?
What is the correct syntax for declaring an array of 10 pointers to integers in C++?
What is the purpose of the reference member type in an allocator?
#include <iostream>
#include <string>
using namespace std;
int main()
{
cout<<rank<int[10]>::value;
cout<<rank<char[10][10]>::value;
cout<<rank<string[10][10][10]>::value;
return 0;
}
What is the output of the following C program?
int main()
{
extern int func(float);
char ch;
ch = func(3.14);
printf("%c", ch);
}
char func(float aa)
{
return ('U');
}
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;
}