81. Which function can be used to find the sum of a vector container?
82. How does a sequence of objects are accessed in c++?
83. In which context does the stack operates?
84. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
template <typename T, int count>
void loopIt(T x)
{
T val[count];
for(int ii = 0; ii < count; ii++)
{
val[ii] = x++;
cout << val[ii] << endl;
}
};
int main()
{
float xx = 2.1;
loopIt<float, 3>(xx);
}
#include <iostream>
using namespace std;
template <typename T, int count>
void loopIt(T x)
{
T val[count];
for(int ii = 0; ii < count; ii++)
{
val[ii] = x++;
cout << val[ii] << endl;
}
};
int main()
{
float xx = 2.1;
loopIt<float, 3>(xx);
}85. What happens when only one argument is supplied to set() function?
86. Which function is used to get the real part of the complex number?
87. How many indicators are available in c++?
88. What will be the output of the following C++ code?
#include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int main ()
{
int numbers[] = {3, -4, -5};
transform ( numbers, numbers + 3, numbers, negate<int>() );
for (int i = 0; i < 3; i++)
cout << numbers[i] << " ";
}
#include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int main ()
{
int numbers[] = {3, -4, -5};
transform ( numbers, numbers + 3, numbers, negate<int>() );
for (int i = 0; i < 3; i++)
cout << numbers[i] << " ";
}89. Which function is used to calculate the conjugate of a complex number?
90. Which will be used with physical devices to interact from C++ program?
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 2
- 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 11
