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 > Small Programs Code Examples

Another one





Program to Solve a Matching Problem For - Program to solve a matching problem. Given N men and N women, where each person has ranked all members of the opposite gender in order of preference, marry the men & women

Find sum of Even Numbers in given Range - Input upper limit to find sum of even number. Store it in a variable say N. Initialize another variable to store sum with 0 say sum = 0. To find sum of even numbers we need to iterate

Demonstrates Printf Inside Another Printf - Firstly Inner printf is executed which results in printing 1324. Printf returns 'Total Number' of Digits:4 & second inner printf will looks like. It prints 4 & Returns the Total Number of digits

C Checking Armstrong Number of n digits - Check Armstrong Number of n digits. In case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself. Example 407 = 4*4*4 + 0*0*0 + 7*7*7

Strrchr searches the string in reverse order - 'StrrChr' is similar to the function 'StrChr', the only difference is that it searches the string in "Reverse Order", would have understood why we have extra r in 'strrchr', yes you guessed it

C Code Print Fibonacci Series by Recursion - Program print 'Fibonacci Series' by recursion. "L. Fibonacci" discovered a simple numerical series called Fibonacci Series. Starting with 0 & 1, each new number in the series is simply...

Implement Prims algorithm using greedy - C Program code implement prims algorithm using greedy method. For first smallest edge. We have fist smallest edge in graph. We have to find min dis of each vertex from either...

C++ Template to Gets Maximum Number - Templates are a feature of the C++ language that allows functions and classes to operate with generic types. A "simple C++ template" behaves same as normal function except the