Which of the following is used to implement late binding.
Object-oriented programming follows the _______ approach.
#include<stdio.h>
int main()
{
const int x = 5;
printf("%d", x);
return 0;
}
Which C++ header file contains the declaration of the min and max functions?
Which trigonometric function returns the arc sine in the range [-π/2, +π/2] radians?
Which one of the following is not a possible state for a pointer.
What will happen when the structure is declared?
What is inheritance in object-oriented programming (OOP)?
Declaring a variable of type void with internal linkage is not legal.
void foo; // error: storage size of 'foo' isn't known
Is it legal to declare a variable of type void with external linkage?
extern void foo;
#include <iostream>
using namespace std;
template <class T>
T sum (T a, T b)
{
T result;
result = a + b;
return result;
}
int main () {
int i=5, j=6, k;
double f=2.0, g=0.5, h;
k=sum<int>(i,j);
h=sum<double>(f,g);
cout << k << '\n';
cout << h << '\n';
return 0;
}