How many elements does a floating-point number consist of?
What is the output of the following C program when n=10?
#include <stdio.h>
#define a 13
int main()
{
#define a 26
printf("%d", a);
return 0;
}
To which type of class can RTTI (Run-Time Type Information) be applied?
Which of the following statements is correct about polymorphism?
Which object-oriented programming concept allows you to reuse the written code?
Inline functions are avoided when:
For which type of class can private and protected members of the class be accessed from outside the same class in which they are declared?
How are objects self-referenced in a member function of a class?
#include <iostream>
using namespace std;
template <class T, class U>
bool are_equal (T a, U b)
{
return (a==b);
}
int main ()
{
if (are_equal(10,10.0))
cout << "x and y are equal\n";
else
cout << "x and y are not equal\n";
return 0;
}