What is the output of the following segment of code?
int *p;
p = new int;
*p = 7;
cout << *p;
a) 0
b) 7
c) there will be an error message
d) we cannot tell because we do not know what memory address will be assigned to p
b) 7
Computer Science & Information Technology
You might also like to view...
A cell ________ color is also known as the background color
A) fill B) style C) grid D) shading
Computer Science & Information Technology
To insert a row, click the ____ to select the row where you want the new row to appear. Then, click the Insert button in the Cells group on the Home tab.
A. row number B. row letter C. column letter D. column number
Computer Science & Information Technology