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 |
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
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
can we initialize all the members of union?
How do I declare a pointer to an array?
How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)
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?
Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?
When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?
what is default constructor?
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.
If null and 0 are equivalent as null pointer constants, which should I use?