1.What is a Data Structure? Explain its need?
2.What is a Directed Graph? Write an algorithm to find
whether a Directed Graph is connected or not?
3.Explain the process of converting a Tree to a Binary Tree.
Answer Posted / diwakar anand
What is a Data Structure? Explain its need?
Ans- 1. A data structure is a systematic way of
organizing and accessing data.
2. A data structure tries to structure data!
* Usually more than one piece of data
* Should define legal operations on the data
* The data might be grouped together (e.g. in an
linked list)
3. When we define a data structure we are in fact
creating a new data type of our own.
* i.e. using predefined types or previously user
defined types.
* Such new types are then used to reference
variables type within a program
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How can I list all of the predefined identifiers?
What is extern keyword in c?
Which of these functions is safer to use : fgets(), gets()? Why?
What are the modifiers available in c programming language?
What does %2f mean in c?
Explain how can I avoid the abort, retry, fail messages?
What are the disadvantages of external storage class?
How will you write a code for accessing the length of an array without assigning it to another variable?
What are the 4 types of programming language?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Explain which function in c can be used to append a string to another string?
What will be your course of action for a push operation?
What is the c language function prototype?
What are the key features in c programming language?