C Quiz – 108 | Question 3
Anyone of the following can be used to declare a node for a singly linked list and “NODEPTR nodePtr;” can be used to declare pointer to a node using any of the following
/* First declaration */typedef struct node { int data; struct node *nextPtr; }* NODEPTR; /* Second declaration */struct node { int data; struct node * nextPtr; }; typedef struct node * NODEPTR; |
chevron_right
filter_none
(A) TRUE
(B) FALSE
Answer: (A)
Explanation: Yes. Both are equivalent. Either of the above declarations can be used for “NODEPTR nodePtr;”. In fact, first one is the compact form of second one.
Quiz of this Question
Recommended Posts:
- C Quiz - 105 | Question 4
- C Quiz - 105 | Question 5
- C Quiz - 105 | Question 3
- C Quiz - 105 | Question 2
- C Quiz - 105 | Question 1
- C Quiz - 110 | Question 4
- C Quiz - 101 | Question 4
- C Quiz - 104 | Question 2
- C Quiz - 104 | Question 3
- C Quiz - 104 | Question 4
- C Quiz - 104 | Question 1
- C Quiz - 103 | Question 5
- C Quiz - 103 | Question 4
- C Quiz - 101 | Question 5
- C Quiz - 102 | Question 1



