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++ > Conversions Code Examples

Convert Binary to Decimal





Check Even or Odd number by switch case - Input number from user and check whether the number is even or odd using switch case. A number is said even number if it is exactly divisible by 2. In C we use Modulo operator...

Bubble Sorting on int array in C Language - C program bubble sorting code on int array. Reading in numbers. Sorting them using a bubble sort. Comparing adjacent elements. Exchange elements. Display sorted list.

C Concats Two Strings without Use Library - We have to accept '2 Strings' from user using gets and we have to 'Concatenate' these two strings without using library functions. Inside the concate function we are firstly calculating

Learn About Structure of a C++ Program - A C++ program starts its execution from this method "main". Wherever this main method is, the main method will be executed first. '()' is used at the end as main is a method. Main

Binary Counting Method Generate Subset - Algorithm takes the input of "n" data element and 'prints all possible combination'. Function to 'Print array element' according to the code in the 'Argument List'. For that, it generates n

C Count Trailing Zeros in a Binary Number - C language input any number from user and count number of trailing zeros in the given number using bitwise operator. How to find total number of trailing zeros in any given...

C++ Program Codes Print Floyd's Triangle - Since Floyd's triangle is right 'angled-triangle' formed by the natural numbers. C++ program ask you to enter the range to print the Floyd's Triangle upto the 'given range'. First enter the

C Calculate Difference Between Two Time - C programming code to calculate difference between two time periods. In this program, user is asked to enter two time periods and these two periods are stored in structure...