43.
What will be the output of the following C++ code?
#include<iostream>
using namespace std;
int main()
{
    int a = 5;
    auto check = [](int x) 
    {
	if(x == 0)
		return false;
	else
		return true;
    };
    cout<<check(a)<<endl;
    return 0;
}

44.
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
bool mygreater (int i,int j) 
{
    return (i > j);
}
int main () 
{
    int myints[] = {10, 20, 30, 30, 20, 10, 10, 20};
    vector<int> v(myints, myints + 8);
    pair<vector<int> :: iterator, vector<int> :: iterator> bounds;
    sort (v.begin(), v.end());
    bounds = equal_range (v.begin(), v.end(), 20);
    cout  << (bounds.first - v.begin());
    cout << " and " << (bounds.second - v.begin()) << '\n';
    return 0;
}

45.
What is the function of shift()?

46.
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
template<class T>
class A
{
	T a;
    public:
	A(){}
	~A(){}
};
 
int main(int argc, char const *argv[])
{
	A <char>a1;
	A <int>a2;
	A <double>a3;
	cout<<sizeof(a1)<<endl;
	cout<<sizeof(a2)<<endl;
	cout<<sizeof(a3)<<endl;
	return 0;
}

47.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
class Cat
{
    public:
    int age;
    int weight;
};
int main()
{
    Cat f;
    f.age = 56;
    cout << "Gates is " ;
    cout << f.age << " years old.\n";
}