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 the difference between call by value and call by reference in c?
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
What is difference between arrays and pointers?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
How do you declare a variable that will hold string values?
What are high level languages like C and FORTRAN also known as?
Write a C program in Fibonacci series.
How reliable are floating-point comparisons?
how can f be used for both float and double arguments in printf? Are not they different types?
How can I make it pause before closing the program output window?
What are extern variables in c?
Differentiate between Macro and ordinary definition.
What is pass by reference in c?
Write a C program to count the number of email on text
What does volatile do?