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

What are mixers used for?

1 Answers  


List three things you can do with the files you create by recording your voice on your computer

0 Answers  


Anyone have thesis paper about "Electrical Load Forecasting" . Or the web addresses where people usually upload their thesis paper except IEEE.

0 Answers  


Briefly describe type of and isvalid operators

1 Answers  


who is your favourate actor in tollywood tellme about him in few points

0 Answers   Genpact,






What is the difference between tcp/ip protocol and IP protocol?

0 Answers   Microsoft,


Is Diesel staorage tank ( 800 litres) cleaning procedure is available with any body

0 Answers  


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.

0 Answers   Eskom,


to acheve the IP 65 protection class does it is mandatory to apply silicon grease?

0 Answers  


Are bridges more stable on concrete or on soil - why?

0 Answers  


Is unit testing possible or even desirable in all circumstances?Provide example to justify your answer.

0 Answers  


WHO IS STAR....?

1 Answers   TCS,


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • 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)