41. Which function is used to print the maximum element from Valarray?
42. What is the use of tuple_cat() function?
43. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
template <class T>
T max (T& a, T& b)
{
return (a>b?a:b);
}
int main ()
{
int i = 5, j = 6, k;
long l = 10, m = 5, n;
k = max(i, j);
n = max(l, m);
cout << k << endl;
cout << n << endl;
return 0;
}
#include <iostream>
using namespace std;
template <class T>
T max (T& a, T& b)
{
return (a>b?a:b);
}
int main ()
{
int i = 5, j = 6, k;
long l = 10, m = 5, n;
k = max(i, j);
n = max(l, m);
cout << k << endl;
cout << n << endl;
return 0;
}
44. When will the cin can start processing of input?
45. What are Random-access Iterators?
46. How many types of loops are there in C++?
47. What does this template function indicates?
==================
template<class T>
T func(T a)
{
cout<<a;
}
==================
==================
template<class T>
T func(T a)
{
cout<<a;
}
==================
48. What does the second parameter of the main function represent?
49. Which header file is used to manipulate the vector algebra in c++?
50. Which function is used to get the imaginary part of the complex number?
Read More Section(C plus plus miscellaneous)
Each Section contains maximum 100 MCQs question on C plus plus miscellaneous. To get more questions visit other sections.
- C plus plus miscellaneous - Section 1
- C plus plus miscellaneous - Section 3
- C plus plus miscellaneous - Section 4
- C plus plus miscellaneous - Section 5
- C plus plus miscellaneous - Section 6
- C plus plus miscellaneous - Section 7
- C plus plus miscellaneous - Section 8
- C plus plus miscellaneous - Section 9
- C plus plus miscellaneous - Section 10
- C plus plus miscellaneous - Section 11