Question
1.
#include
2.
#include
3.
using namespace std;
4.
int main ()
5.
{
6.
try
7.
{
8.
int* myarray= new int[1000];
9.
cout
What is the output of this program?
1.
#include
2.
#include
3.
using namespace std;
4.
int main ()
5.
{
6.
try
7.
{
8.
int* myarray= new int[1000];
9.
cout
Answer: Option D
Was this answer helpful ?
Variable will be allocated depends on the available space in the memory, If there is no space
means, It will throw an exception.
Output:
$ g++ std1.cpp
$ a.out
Allocated
Was this answer helpful ?
Submit Solution