If you are using C language to implement the heterogeneous
linked list, what pointer type will you use?
Answers were Sorted based on User's Feedback
Answer / knowledge
A void pointer...as it can be type casted to point to any
data type.
Is This Answer Correct ? | 25 Yes | 4 No |
Answer / rpr
In linked list a 'pointer' points to the next node which is written in a 'structure'. so we will use "struct node" as pointer data type.
struct node
{
void data; // void can be used here for heterogenous data
struct node *ptr;
};
Is This Answer Correct ? | 7 Yes | 5 No |
Answer / ajay vikram
The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type.
Is This Answer Correct ? | 0 Yes | 0 No |
What are mixers used for?
List three things you can do with the files you create by recording your voice on your computer
Anyone have thesis paper about "Electrical Load Forecasting" . Or the web addresses where people usually upload their thesis paper except IEEE.
Briefly describe type of and isvalid operators
who is your favourate actor in tollywood tellme about him in few points
What is the difference between tcp/ip protocol and IP protocol?
Is Diesel staorage tank ( 800 litres) cleaning procedure is available with any body
If you have two 132KV distance scheme and you are using fibre for comms but the two relays on are not compatible interms of comms what can you use to allow communication between the two relays.
to acheve the IP 65 protection class does it is mandatory to apply silicon grease?
Are bridges more stable on concrete or on soil - why?
Is unit testing possible or even desirable in all circumstances?Provide example to justify your answer.
WHO IS STAR....?