

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following definition in c programming language. 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));View Answer |
Answer» B. ptr = (NODE*)malloc(NODE); | |