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


Please Help Members By Posting Answers For Below Questions

How can I access an I o board directly?

620


What does the format %10.2 mean when included in a printf statement?

1079


Do string constants represent numerical values?

913


how to find anagram without using string functions using only loops in c programming

2712


Is it cc or c in a letter?

558






What is the explanation for cyclic nature of data types in c?

642


What is c mainly used for?

593


What is the difference between procedural and declarative language?

643


Write a program to generate random numbers in c?

658


What type is sizeof?

580


What are reserved words?

650


What is #include in c?

596


What is string function in c?

531


1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

3975


What is the difference between arrays and pointers?

628