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 |
2 ships are wardroom light house one side at 30 degree and other ship other side at 45 degree. If light house has 100 m, find distance of boat from light house. and also find distance of each boat from light house
model question papers of GrayOrange company
my pc frequently rebooted on normal windows xp mode, but didnot rebooted on safemode, its works no rebooting. what problem this, pls solution.
how to increase the chiller effiency?
my PST is corrupt and can not be repaired, what do you do?
which is better php,asp.net,jsp? and why?
I am some what lagging in talking English but i love to do job as an software engineer what will i do to improve my communication skills? please give me answer..........
hi i am avinash ,i am doing ma b-tech(cse) final year and i have been detained for 2years due to attendance and i will be finished ma b-tech in 6 years ,plz tell me weather i will be eligible for government jobs like bhel, drdo,or any other private companies
hi this santosh sharma i want to know more question of system engineer job related.
am a textile eng. frombut with major of my course including chemical eng, subjects, can i too apply to the co.?
what are active and passive components
Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)