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
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
What is a null string in c?
What is realloc in c?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
I have seen function declarations that look like this
What is wrong with this program statement? void = 10;
What is a const pointer in c?
What is a static variable in c?
What is calloc malloc realloc in c?
What are pointers? What are different types of pointers?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
What is string concatenation in c?
What are multidimensional arrays?
Is c procedural or object oriented?