adplus-dvertising

Discussion Forum

Que. Which of the following data structure can't store the non-homogeneous data elements?
a. Arrays
b. Records
c. Pointers
d. None of the above
Answer:Arrays
Rumki :(April 17, 2019) Why not pointers?
becoz pointe held the address of next node.
First of all Pointer is not a data structure because a data structure is a group of similar or different types of data elements that can be processed as a single unit. So the answer to our question is not “Pointers”.

Just FYI: We have a special type of Pointer called “Void pointer” or “General purpose pointer” in C. This pointer is not associated with any data types and it can hold address of any type and can be typecast to any type.
First of all pointer is not a data structure because a data structure is a group of similar or different data elements that can be processed as a single unit. So “Pointers” is not the answer to our question.

Just FYI: We have a special type of pointer in C called “Void pointer”. It is not associated with any data types. A void pointer can hold address of any type and can be typecast to any type. It is also called “General purpose pointer”.
First of all pointer is not a data structure because a data structure is a group of similar or different data elements that can be processed as a single unit. So “Pointers” is not the answer to our question.

Just FYI: We have a special type of pointer in C called “Void pointer”. It is not associated with any data types. A void pointer can hold address of any type and can be typecast to any type. It is also called “General purpose pointer”.
Right 👍
Click Here to Reply
Mohit :(May 10, 2021) First of all pointer is not a data structure because a data structure is a group of similar or different data elements that can be processed as a single unit. So “Pointers” is not the answer to our question.

Just FYI: We have a special type of pointer in C called “Void pointer”. It is not associated with any data types. A void pointer can hold address of any type and can be typecast to any type. It is also called “General purpose pointer”.
Click Here to Reply
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: