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++ > Sorting Searching Code Examples

Generate All Possible Combinations of a Given List of Numbers

C Swap two numbers using XOR Operator - C programming code to swap two numbers using XOR operator. Generally swaping two number requires three variables. Let's take look at procedure of swaping two numbers.

Reverse a Number Check it is Palindrome - Take the Number which you have to Reverse as the input. Obtain its quotient & remainder. Multiply the Separate variable with 10 & add the obtained remainder to it. Do step 2 again

C Add Two Distances (in inch-feet) System - In this c program code, a structure Distance is defined. The structure has two members inch (a float) and feet (an integer). Two variables (distance1 and distance2) are created which...

Simple Programs Area Of Square Formula - The second power was described in terms of the area of a square, as in the above formula. It led to the use of the term square to mean raising to the "second power". Thus the area

Program to Accept Paragraph using scanf - Here scanf will accept characters entered with spaces. It also accepts the Words, new line characters. Represent that all characters are accepted except tab(t), whenever t will

Program Code Implement Pigeonhole Sort - Code implement pigeonhole sort. Pigeonhole sorting, also known as count sort, is a sorting algorithm that is suitable for 'Sorting Lists' of elements where the Number of Elements (n)

C programming code right rotate an array - C code to right rotate an array by n position. How to right rotate an array n times in C. Logic to rotate an array to right by n position in C program. Read elements in an array say

Types of Loops in The C++ Programming - While Loop: While a given Expression is true it "Repeats the Statement" in the loop body. Before executing the Loop Body it tests the condition for True or False. Do...While Loop: