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 > Recursion Code Examples

Program to Input Few Numbers & Perform Merge Sort on them using Recursion





Check the Number can be Express as Sum - Check if an integer can be 'expressed' as the "sum of two Prime Numbers" of all possible combinations with the use of functions. This program takes a positive integer and checks

C Program to Open, Read & Close the File - C various file opening modes: File is opened using fopen() c function, while opening you can use any of the following mode as per the requirement. Mode "r": It is a read only mode,

Any number of Digits Armstrong Sample - An "Armstrong Number" is a number that is the 'sum of its own digits' each raised to the power of the number of digits is equal to the number itself. Some Armstrong numbers is 0

Compare two Strings in the C++ language - Function will return 0, if the strings are equal; return 'negative value', if "string1 is less" than string2 and return "positive value" if string1 is greater than string2. This function 'compares'

C Programming Codes Reverse an Integer - C Reversing an integer, takes an integer input from the user. Then the while loop is used until n != 0 is false. In each iteration of while loop, the remainder when n is divided by 10

Print Natural Number in Reverse in Range - Logic to print Natural Number in reverse in a given range. If you got above logic, then you can easily modify to print natural numbers in reverse in given range. We need to make two

C Program Sample Implement Bitonic Sort - Compare and swap based on dir, sorts bitonic sequence in ascending order dir=1, otherwise in descending order. Code generates "Bitonic Sequence" by Sorting Recursively two halves

C++ Computes Cross Product of 2 Vectors - C++ Program to find the cross product of two vectors. In mathematics, the cross product or vector product is a "Binary Operation" on two vectors in three-dimensional space. It results