# C++ Programming Code Examples

## C++ > If Else and Switch Case Code Examples

### If-Else Statement - check even or odd

C++ Sample Code Implement Bubble Sort -
Bubble sort algorithm sort data by comparing 2 consecutive numbers. The time Complexity of this algorithm is O(n^2). And compare two consecutive number. Switch values if number

C++ Program Deletes Vowels from Strings -
To delete all the vowels from the string in C++ programming, 'you have to ask' to the user to enter the string, now start checking for vowel ('i.e., a, A, e, E, i, I, o, O, u, U') to delete all the

C++ Finds Maximum Element in an Arrays -
Construct "Binary Search" tree for "unsorted" data array. For the 'Maximum element' move the pointer to the rightmost child node. This value will be the minimum value among data.

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

C Codes Multiply 2 Numbers use Function -
Create a user defined function product() that multiplies the numbers that we are passing to it during function call. This c function returns the product of these numbers. To understand

C Using Continue in While Loop statement -
When using while or do-while loop you need to place an increment, decrement statement just above the continue so that counter value is changed for the next iteration. if we do not

Program Implements First Fit Decreasing -
This is a C++ Program to implement First Fit Decreasing for one dimensional objects and M bins. This is bin packing algorithm for first fit technique. Bubble Sort descending order

Insert, Update and Delete value Functions -
This c++ program code is helpful to manage a menu "base database" using array and shows how to prevent from a wrong input. Its simple to introduce the basic database management