What is graph in c?



What is graph in c?..

Answer / Mohammad Imran

In C, a graph is a data structure used to represent relationships between different objects. It consists of vertices (or nodes) and edges which connect these vertices. Graphs can be undirected or directed, weighted or unweighted.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

1 Answers  


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

1 Answers  


can we initialize all the members of union?

2 Answers  


How do I declare a pointer to an array?

6 Answers   IBM,


How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)

4 Answers  


main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?

7 Answers   AMCAT, HCL, Ramco, Zycus Infotech,


how do you redirect stdout value from a program to a file?

1 Answers  


Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

2 Answers   TCS,


When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?

2 Answers   Aloha Technology,


what is default constructor?

2 Answers   HCL,


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1 Answers  


If null and 0 are equivalent as null pointer constants, which should I use?

1 Answers  


Categories