 C Programming Code Examples

C > Linked Lists Code Examples

C Program to Create a Linked List & Display the Elements in the List

C Find Sum of Natural numbers in a range - Give a meaningful name to the function, say sumOfNaturalNumbers(). The function must accept two inputs i.e. the lower & upper limit to find sum. Pass two integer parameters to

Program to Convert Hexadecimal to Octal - There is not any Easy and Direct conversion algorithm from hexadecimal to octal number. Convert the Hex number to Binary. Group the converted binary in groups of 3 bits. Write the

C Language Program Print Reverse Array - Print an array in reverse order, we shall know the length of the array in advance. We can start an iteration from length value of array to zero and in each iteration we can print...

Reverse Counting program in C Language - C Program reverse counting is sequence of whole numbers in descending order without zero. Developing a program of counting in C programming language is easy and we shall

C Programming code Array Concatenation - To concate two arrays, we need at least three array variables. We shall take two arrays and then based on some constraint, will copy their content into one single array. We shall

C++ Finding Transitive Closure of a Graph - Displaying the 'transitive closure matrix' of a graph. The reachability of a particular node 'i' towards all node pairs ('i','j') is known as the transitive closure of a graph. So this matrix is

C++ Finding Median of Two Sorted Arrays - Program find the 'median' of elements where elements are stored in 2 'different arrays'. We need to find 'combined' median of 2 different 'data set'. So it includes sorting of both arrays

Code Prints the Factorial of given Number - C code Print the 'Factorial' of a given number. A factorial is product of all the numbers from 1 to n, where n is the 'specified number'. This C program find the product of all the number