What is also called an abstract class?
What are the ways a pointer can be initialized?
Which of the following functions is used to write formatted output with variable argument lists?
What is the output of the following program?
int main()
{
char far *c1;
printf("%d %d", sizeof(c1), sizeof(*c1));
}
#include<stdio.h>
int main()
{
printf("%p", main);
return 0;
}
A complete binary tree with the property that the value at each node is at least as large as the values at its children is known as
What is the output of the following C program?
int main()
{
int num1 = 10, num2 = 20;
num2 = num1, num2 ? (num1, num2) ? num1 : num2 : num2;
printf("%d %d", num1, num2);
}
What will be returned in the following C code?
size- t strlen(const char *s)
const char *sc;
for(sc = s; *sc!= ' \ O ' ; ++sc)
return(sc - s) ;
What is the type of the variable x in the following program?
#include<stdio.h>
int main()
{
typedef char (*(*abekus[3])())[10];
abekus x;
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int myints[] = {10, 20, 30, 5, 15};
vector<int> v(myints, myints + 5);
make_heap(v.begin(), v.end());
pop_heap(v.begin(), v.end()); v.pop_back();
v.push_back(99); push_heap(v.begin(), v.end());
sort_heap(v.begin(), v.end());
for (unsigned i = 0; i < v.size(); i++)
cout << ' ' << v[i];
return 0;
}