1.Determine the output of each of the following program when it is executed. (a)
#include using namespace std; int main()
{
}
(b)
int x(10);
cout <><><>
#include using namespace std; int main()
{
int x(10),y(20),sum(0); sum = x+y;
cout <> x <“>y; cout “ sum = ” <><> 0;
}
(c)
#include using namespace std; int main()
{
}
(d)
int x = 10,y = 20,sum = 0; sum = x+y;
cout <> x <“>y; cout “ sum = ” <><> 0;
#include int main()
{
}
(e)
using namespace std; bool b = cout.bad(); cout <>
b = cout.good( ); cout <><>
#include int main(void)
{
using namespace std; double i = 1.23e100; cout <>
cout <><><>
cout <><><><><><><>
} return 0;
(f)
#include int main()
{
using namespace std; int j = 100;
cout <><>
cout <><><><><><><><><><><><><><><><><><><>
} return 0;
(g)
#include int main()
{
using namespace std; bool b = true;
cout <>
boolalpha( cout ); cout <><><>
cout <><>
} return 0;
(h)
#include int main()
{
using namespace std; cout <>
} return 0;
(i)
#include int main()
{
using namespace std;
cout <>
} return 0;
“>“>