1.

What is the output of this program?
#include 
using namespace std;
int main()
{
char* buffer;
try
{
buffer = new char[1024];
if (buffer == 0)
throw "Memory allocation failure!";
else
cout << sizeof(buffer) <
}
catch(char *strg)
{
cout< }
return 0;
}

A. Depends on the size of the data type
B. 4 Bytes allocated successfully
C. 8 Byte successfully allocated!
D. Memory allocation failure
E. None of these
Answer» B. 4 Bytes allocated successfully


Discussion

No Comment Found

Related MCQs