What is the type of output of a vector cross product?
What will be the output?
#define x 65
int main()
{
printf("%d", x+5+x/5);
return 0;
}
Which class allows only one object to be created?
Which C++ function is used to read a single character from the console?
What must be specified when constructing an object of the ostream class?
Which of the following is not a type of Constructor?
Which header file is used to implement algorithms provided by the C++ Standard Template Library (STL)?
Which of the following is used to describe the function using placeholder types?
What is the output of the following C code?
#include "stdio.h"
int main()
{
while(!printf("hello"));
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int main()
{
int first[] = {10, 40, 90};
int second[] = {1, 2, 3};
int results[3];
transform(first, first + 3, second, results, divides<int>());
for (int i = 0; i < 3; i++)
cout << results[i] << " ";
return 0;
}