How many types of polymorphism are there in C++?
What does the function object implement?
What type of semantics does C++ use to implement iterators?
How many types of iterators are there in the C++ Standard Template Library (STL)?
If a pointer is declared more than once which of the following may occur?
Length of a string literal is
Predict the output of the below program:
int main()
{
int i;
if (printf("0"))
i = 3;
else
i = 5;
printf("%d", i);
return 0;
}
Find the output of the following C code:
#include <stdio.h>
struct abc{
struct xyz{
};
};
int main()
{
printf("%d", sizeof(struct abc));
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int a = 9;
int& aref = a;
a++;
cout << "The value of a is " << aref;
return 0;
}
What is the meaning of polymorphism in object-oriented programming (OOP)?