72.
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main () 
{
    int myints[] = { 10, 20, 30 ,40 };
    int * p;
    p = find (myints, myints + 4, 30);
    --p;
    cout << *p << '\n';
    return 0;
}

74.
What is the use of has_value() function in any container?

76.
What will be the output of the following C++ code?
#include <iostream>
using namespace std; 
struct A 
{
    int i;
    char j;
    float f;
    void func();
};
void A :: func() {}
struct B 
{
    public:
    int i;
    char j;
    float f;
    void func();
};
void B :: func() {}
int main() 
{
    A a; B b;
    a.i = b.i = 1; 
    a.j = b.j = 'c';
    a.f = b.f = 3.14159;
    a.func();
    b.func();
    cout << "Allocated"; 
    return 0;
}

78.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
template <class T>
inline T square(T x)
{
    T result;
    result = x * x;
    return result;
};
template <>
string square<string>(string ss)
{
    return (ss+ss);
};
int main()
{
    int i = 2, ii;
    string ww("A");
    ii = square<int>(i);
    cout << i << ": " << ii;
    cout << square<string>(ww) << ":" << endl;
}

80.
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
template<class T>
class A
{
    public:
	T func(T a, T b){
		return a/b;
	}	
};
 
int main(int argc, char const *argv[])
{
	A <float>a1;
	cout<<a1.func(3,2)<<endl;
	cout<<a1.func(3.0,2.0)<<endl;
	return 0;
}