Which of the following C language code is used to create a new node in the singly

Question:

Which of the following C language code is used to create a new node in the singly linear linked list.

image text in transcribed

A. ptr = (LIST*) malloc(sizeof(LIST));

B. *ptr = (LIST*) malloc(LIST);

C. ptr = (LIST*) malloc(sizeof(LIST*));

D. ptr = (LIST) malloc(sizeof(LIST));

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: