1. Computer Science Engineering (CSE)
  2. Data Structures (DS)
  3. Linear Data Structures - List
  4. Which of the following c code is used to...
Q.

Which of the following c code is used to create new node?

A. ptr = (NODE*)malloc(sizeof(NODE));
B. ptr = (NODE*)malloc(NODE);
C. ptr = (NODE*)malloc(sizeof(NODE*));
D. ptr = (NODE)malloc(sizeof(NODE));
Answer» A. ptr = (NODE*)malloc(sizeof(NODE));
View all MCQs in:   Data Structures (DS)

Discussion