How many engine adaptors are there in C++?
How many parameters does a default constructor require?
Identify the output of the following C code.
The two's complement method can be used to represent subtraction as an addition problem.
How do you free the allocated memory?
How can you access the arguments that are passed to a variable-length argument list function?
What will be the output?
#include "stdio.h"
int main()
{
int m=10;
if(m=30,20,0)
printf ("i love u %d",m);
else
printf ("i hate u %d",m);
return 0;
}
Find the output of the following program, if the input to the program is 1234 and 5678.
What will be the output of the following C++ code?
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> myvector;
myvector.push_back(78);
myvector.push_back(16);
myvector.front() += myvector.back();
cout << myvector.front() << endl;
return 0;
}
Which of the following statement are correct?
(i) The value stored in the CPU register can always be accessed faster than that stored in memory.
(ii) A register storage class variable will always be stored in a CPU register.