Consider the following definition in C programming language struct node { int data; struct node * next;} typedef struct node NODE;NODE *ptr; 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=(NOD
E.
malloc(sizeof(NODE));
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】Questions 33-37 Complete the table below. Write NO MORE THAN THREE WORDS for each answer. 【33】