Every complete C++ program must have a _____.
#include<iostream>
using namespace std;
int main()
{
int x=3, y=6;
cout<<++x<<" "<<y--<<endl;
return 0;
}
In Linux, how are the heap and stack memory areas managed?
#include
The ________ function returns the number of characters that are present before the terminating null character.
What is the value of the following 8-bit integer after all statements are executed?
What is the difference between the Exit() function and the return statement?
In C++, the purpose of a pure virtual function is:
Given the variables p, q are of char type and r, s, t are of int type. Select the right statement?
1. t = (r * s) / (r + s);
2. t = (p * q) / (r + s);
What will be the output of the following C++ code?
#include <iostream>
#include <type_traits>
using namespace std;
class Base
{
public:
virtual void function1() {};
virtual void function2() {};
};
int main()
{
Base b;
cout << sizeof(b);
return 0;
}