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 > For Loops and While Loops Code Examples

Program to print even numbers without using if statement

Check a Number can be Expressed as Sum - Program to check whether a number can be expressed as sum of two prime numbers. To accomplish this task, "checkPrime()" function is created. The "checkPrime()" returns 1 if the

Count total number of Vowels Consonants - C program to find total number of vowels and consonants in a string using 'Loop and If Else'. 'Input String', store it in some variable say str. Initialize 2 other variables to store vowel and

Program to Swap Numbers in Cyclic Order - Notice that we have not returned any values from the 'cyclicSwap()' function. When these variables are swapped in "Cyclic Order" in the 'cyclicSwap()' function, variables a, b and c in

Program to Check Whether Graph is DAG - This is a C++ Program code to check whether graph is DAG. In mathematics and computer science, a directed acyclic graph, is a directed graph with no directed cycles. It is formed by

C++ Check a Character is Alphabet or Not - To check whether the entered character is an alphabet or not alphabet in the 'C++', enter a character and start checking for alphabet. To check for alphabet, use 'ASCII' of character, if

Checks if an Directed Graph is Tree or Not - A C++ Program to check whether an directed graph is tree or not. Graph is tree if it doesn't contain cycles. Pointer to an array containing adjacency lists. Returns true if there is a cycle

C++ Sample Calculate Power of a Number - Program takes two numbers (a 'base number' and an 'exponent') and Calculates the Power. The technique works only if the exponent is a positive integer. If you need to find the power

C Language & CPU Scheduling Algorithm - C Program Checks if the mouse pointer is over the button. Checks whether count=1 so as to display the button on the new position for only once. Creates a box and the box is...