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

Answer Posted / vivek sharma

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 ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A>B,B>C,C=D,D>E,then which is greatest?

856


how would you connect 8 dots with 3 lines.

1287


600 tennis players 4% ->wrist band on one wrist of remain 96%->25%->on both hands remain no of ---

742


The minimum token cost is Rs. 100, which grants the token holder to travel up to a distance of 10 miles. And for every additional mile travelled, the charge is Rs. 10. A minimum luggage weight of 10 kg is not charged, after which it is charged at Rs. 1 per kg. During a specific journey, suppose you carry a weight of 'k' kg, and a distance of 'p' miles is travelled, which equation will indicate the correct total charge to be paid by the traveller?

688


A family has several children. Each boy in this family has as many sisters as brothers but each girl has twice as many brothers as sisters. How many brothers and sisters are there?

812






Mary's father's brother is Andrews Andrews daughter's son is Sunil Brothers name is Sam Who is Sam to Sunil?

1138


there are two categories of persons in ratio a:b = 2:3. A type earns 2.5 dollars/hr and b type 1 dollar/hr total money earned by both is 24dollars. Then what is the total number of persons

685


total balls are z, the number of red balls is n and the remaining are blak balls,then the % of black balls equal to ?

690


The ratio between two numbers is 5:7 and their product is 560. What is the difference between these two numbers?

1298


George while driving along the highway saw road markers which are at equal distances from each other. He crosses the markers every 20 seconds. If he increases his speed by x meters per second, he crosses the markers at every 15 seconds. But if he increases his speed by y meters per second, he crosses the marker at every 10th second. If y-x = 40 meters per second, then what is the distance between two markers.

908


For 1:2:4 ratios the weight of cement is 50 kg then how many kg are the weight of sand and aggregate?

795


One of the longest sides of the triangle is 20 m. The other side is 10 m. Area of the triangle is 80 m2m2. What is the another side of the triangle?

816


A persons age is similar to the year he was born(last two digits is counted as age).

968


the decimal number was given.it was converted to other system.they asked to identify the system.i.e. octal,hexadecimal.

660


There are some 20 Basketball players & 30 Football players, and 25 cricket players. 1 of them plays all the three games. 8 of them plays at least two games. They are 50 altogether. How many of them plays none of the games.

1079