 C++ Programming Code Examples

C++ > Pyramid Patterns Code Examples

Programs to print inverted half pyramid using * and numbers

Implement Hash Tables by Linear Probing - Insert Element at a key. Search Element at a key. Remove Element at a key. Enter element to be inserted. Enter key at which element to be inserted. And Enter key of the element to

Find sum of prime numbers in given range - C program to find sum of all prime numbers between 1 to N. Input Lower and Upper limit from user. Find prime numbers in the range. Check if the current number x is Prime or not.

Implement Pancake Sort Array of Integers - C code implements Pancake Sort on array of integers. Pancake sorting is a variation of the "Sorting Problem" in which the only allowed operation is to reverse the elements of some

C Finds a Year is Leap or not is a bit Tricky - C Program Code we generally assume that if a year number is evenly divisible by 4 is leap year. But it is not the only case. A year is a leap year if it is evenly divisible by 100. If it is

C++ Program Checks Armstrong Number - In c++ program, a positive integer is asked to enter which is stored in the variable origNum. The number is copied to variable num. This is done because we need to check the origNum

C Program Code Finds Area of a Rectangle - Input length and width of a rectangle and find area of the given rectangle. How to calculate area of a rectangle in C programming. Input length and width of rectangle. Store it in two

Converts Hexadecimal to Binary Numbers - Hexadecimal to Binary conversion is divided in 3 steps. Extract each hex digits separately. Find the Binary of each extracted Hex digit. Store the binary equivalent of extracted hex

Learn Bitwise Operators in C++ Language - in C++, "bitwise operators" are similar to the Logic operators, but they perform the same logical operations on bits. All data in memory is represented in the "binary form". Variables