Examlex

Solved

What Is Wrong with the Following Code Fragment

question 34

Multiple Choice

What is wrong with the following code fragment?
Int *p1, *p2;
P1 = new int;
P2 = new int;
*p1=11;
*p2=0;
P2=p1;
Cout << *p1 <<" " << *p2 << endl;
Delete p1;
Delete p2;


Definitions:

Diversifiable Risk

The portion of investment risk that can be reduced or eliminated through diversification among different assets.

Financial Leverage

Utilizing debt to finance additional assets, aiming to increase returns to shareholders but also increasing risk.

ROE

A metric indicating how effectively a company uses shareholders' funds to generate profits.

Financial Leverage

The use of borrowing to increase the potential return of an investment.

Related Questions