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 |
how many address lines are necessary to address two megabytes(2048k) of memory
what is difference between value datatype and object datattype
I want the syllabus of Section Enginner(Signal & Telecom) of RRB Exam
Hello sir i finished my BE computer 2009 batch. I'm not gud at programming like 0 knowledge and i'm not interested in it too . Except this programming field is anyother option to afford into a new one ??????? can anyone help me plz
differance between radix sort and radix exchange sort
#include<stdio.h> void main() { int x,y,z; x=1; y=1; z=1; z=++x||++y&&++z; printf("%d%d%d",x, y ,z); }
how to create session in visual web jsf page as we create in jsp and how to maintain that jsf session in another jsp page? <JSF=java server faces> <JSP=java server pages>
What is the use of Thumb instructions in ARM processor ?
Is printf(?%d?,p); valid?
what is the diffeence between SQL and ORACLE?
funtionalities of loadining and linking
Hi I need exam pattern for ECIL Computer/IT category...