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

i want to know details about SBI bank exam and date when to apply and what is the eligibility and the model papers related to it and various post available for Engineering in Information Technology.

0 Answers  


What is the difference between while & do while loop

0 Answers  


i possess a little knowledge of core java . so is it will be difficult for me to start advanced java?

0 Answers  


in intel 8086 why is the segment register content appended by zero to generate physical address?

1 Answers  


what do you mean by CPU register?

0 Answers  






Write a program to maintain a singly linked list having the following functions: a) Creation of the list b) Displaying the list. c) Swap all nodes at consecutive even odd positions. E.g.: The nodes at position 1 should be swapped with node 2, node 3 with node 4 and so on.

0 Answers   C DAC, CDAC,


funtionalities of loadining and linking

0 Answers  


what is test initiation criteria in software testing

2 Answers   CybAge, Seed Infotech,


Can anyone tell me the exact formulae with explanation for the questions related to cube which is asked for CTS? I have seen varieties of formulae in different sites.I need the exact on... So pls help me out!!!

0 Answers   CTS,


a book consists of chapter ,chapter consist of sections and sections consists of subsections.construct a tree and print the node.

0 Answers  


As a good company employee, can you report your supervisor to the company management if he or she is going against the company interest in his or her actions?

0 Answers   GE,


What is the weight of a foot square block of bronze.

0 Answers  


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)