Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


C Programming Code Examples

C > Arrays and Matrices Code Examples

C program to find second largest number in an array





C Performs Quick Sort on A Set of Entries - Perform Quick Sort on a set of entries from a file using recursion. The following C program, using recursion, performs 'quick sort'. A quick sort is a sorting algorithm with complexity of

C++ Increment and Decrement Operators - In this C++ example, you'll 'learn to overload' Increment ++ and Decrement -- operators in C++. "increment & decrements" operator are overloaded in best possible way, increase the

C++ language Simple Stack using Pointers - A 'stack' is a basic "data structure" and can be defined in an 'Abstract', implementation-free manner, or it can be "Generally Defined" as a Linear List of items in which all additions and

C Code Function Solve the Tower of Hanoi - C Program code uses Recursive Function and solves the tower of hanoi. Tower of hanoi is a mathematical puzzle. It consists of threerods, and a number of disks of different sizes which

C++ Generating All Subsets of a Given Set - Program print all the possible combination of each length from the given array in gray code order. The 'time complexity' of this algorithm is 'O(n*(2^n))'. This algorithm takes the input

C++ Checks if an Undirected Graph is Tree - C++ Program to check whether an undirected 'graph is tree' or not. Graph is tree if it doesn't contain cycles. A recursive function that uses visited[] & parent to detect cycle in subgraph

C Code Selection Sort Method by Function - C Program implements selection sort method using functions. 'Selection' Sort is among the simplest of Sorting Techniques. Lets first find the smallest in the array and exchange it with

Code Print the Words Ending with Letter S - This program takes a string as input and print the words ending with letter "s". Take a string as input and store it in the array str[]. Find its length & add a blank space to the input string