Select the correct option to test your answer:
Computer
Plus Plus Miscellaneous
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> #include <new> using namespace std; int main () { int i, n; int * p; i = 2; p= new (nothrow) int[i]; if (p == 0) cout << "Error: memory could not be allocated"; else { for (n=0; n<i; n++) { p[n] = 5; } for (n = 0; n < i; n++) cout << p[n]; delete[] p; } return 0; }
More Computer Questions
In ggplot2, how do you customize the appearance of the legend title?
Arrays in JavaScript are written within ______
The filesize() function returns the file size in ___________
Suppose i is 5 and j is 4, i + j is same as ______
Which of the following is the most desirable condition for interpolation search?