Examlex

Solved

What Is Wrong with the Following Definition of HeadInsert

question 39

Multiple Choice

What is wrong with the following definition of headInsert?
Struct Node
{
Int item;
Node* link;
};
Typedef Node* NodePtr;
Void headInsertNodePtr& head, int data)
{
NodePtr tmp = new Node;
Tmp->item = data;
Head->next = tmp;
Tmp->next = head->next;
}
NodePtr head;
HeadInserthead, 4) ;


Definitions:

Assets

Resources owned or controlled by a person or business, which are expected to produce economic value or benefits in the future.

Common Stock

A form of security signifying part ownership in a corporation, which entitles the owner to vote and receive a portion of the company's earnings via dividends.

Accounts Receivable

Refers to the money owed to a company by its customers for goods or services that have been delivered but not yet paid for.

Dividends

Payments made by a corporation to its shareholders from the earnings of the company.

Related Questions