C Programming Code Examples
C > Miscellaneous Code Examples
C Program to Add digits of the number using single statement
Using the Bellman-Ford Algorithm to Find -
Using the bellman-ford algorithm to find the shortest path between two vertices assuming that negative size edges exist in the graph. A Program to find the 'shortest path' algorithm
Program Convert Binary Decimal Number -
To improve "readability of program" make a separate function and function should return the "resultant number". In main function user enters input number. Calls the function, pass
Program Convert Decimal to Hexadecimal -
C Language Program code to take a decimal number as input and store it in the variable decimalnumber. Initialize the variable j=0 & copy decimalnumber to variable quotient.
What is The Function Overloading in C++ -
Code sample about C++ language Function overloading. If a "C++ Class" have multiple member functions, having the same name but different parameters and programmers
Implement A Heuristic to Find the Vertex -
Problem takes E edges as input and outputs vertex cover of the graph, implementing the following heuristic. There is no "Polynomial" time algorithm "invented up to date" to find
C Language Code Investigating the Family -
C Function to input data on Family members. C Function to output data on people on file. Structure to hold data from file. Pointer to Family structure. File position. Open file for
C++ Programming Compares Two Strings -
To compare two Strings in C++, enter the two string and start comparing using the function "strcmp()". If return 0, then both string will be equal and if not return 0, then both string will
Simple Programs Area Of Square Formula -
The second power was described in terms of the area of a square, as in the above formula. It led to the use of the term square to mean raising to the "second power". Thus the area