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 |
I think it is 65% in 10th, 12th n BE with a 5% relaxation in any one. For west bengal bord..what will be simple average for HS...is the additional marks would be adde with 100+200=1200.and the the average will be done. OR it will be treated 65% if somebody gets 650 in HS.? Please reply for this question......... And what is the marks criteria for infosys for experienced employee.
what is overflow and what are the conditions for which overflow possible?
I want old SBI question papers plzzzzzzzzz
What is a computer without a hard disk called as technically ?
What are the features of tata nano , technical specification of tata nano, overview of tata nano, varients of tata nano, price of tata nano, dealers of tata nano, expectation from tata nano, criticism of tata nano, tata nano hybrid ?
Create an midp application which examines that a phone number which has enters is in the given format * Area code should be one of the following:040,041,050,0400,044
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>
print your name without using any semicolon?
Tl me folder name that has been not changed
One of your responsibilities will be to prepare and train on standard work instructions or quality initiatives. What experience and qualifications do you have that will enable you to succeed in this role?
how to avoid a class from getting inherited but respective class should be able to instantiate ?
write a program to print only the largest number between elements of an 1-d array?
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)