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



If you are using C language to implement the heterogeneous linked list, what pointer type will you ..

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

If you are using C language to implement the heterogeneous linked list, what pointer type will you ..

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

If you are using C language to implement the heterogeneous linked list, what pointer type will you ..

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

Post New Answer

More Engineering AllOther Interview Questions

how many address lines are necessary to address two megabytes(2048k) of memory

1 Answers  


what is difference between value datatype and object datattype

0 Answers  


I want the syllabus of Section Enginner(Signal & Telecom) of RRB Exam

0 Answers  


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

0 Answers  


differance between radix sort and radix exchange sort

0 Answers   Patni,


#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); }

1 Answers  


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>

1 Answers  


What is the use of Thumb instructions in ARM processor ?

4 Answers   ARM, Qualcomm,


Is printf(?%d?,p); valid?

0 Answers  


what is the diffeence between SQL and ORACLE?

0 Answers  


funtionalities of loadining and linking

0 Answers  


Hi I need exam pattern for ECIL Computer/IT category...

1 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4452)
  • Electrical Engineering Interview Questions Electrical Engineering (16637)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)