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
What is a sequential access file?
What is the purpose of macro in C language?
What is call by value in c?
What is page thrashing?
Write programs for String Reversal & Palindrome check
How to compare array with pointer in c?
What is function what are the types of function?
What is sizeof int in c?
What is line in c preprocessor?
Explain what is dynamic data structure?
What is %s and %d in c?
What is scope and lifetime of a variable in c?
Who is the main contributor in designing the c language after dennis ritchie?
What is the purpose of main() function?
write a program to display all prime numbers