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
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What is the use of typedef in c?
difference between Low, Middle, High Level languages in c ?
What does %d do in c?
The statement, int(*x[]) () what does in indicate?
What is the size of array float a(10)?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
How can I run c program?
Are pointers really faster than arrays?
Differentiate between full, complete & perfect binary trees.
Can we use any name in place of argv and argc as command line arguments?
What is the symbol indicated the c-preprocessor?
What is "Hungarian Notation"?
How can you tell whether two strings are the same?
What does sizeof function do?