 # C++ Programming Code Examples

## C++ > Beginners Lab Assignments Code Examples

### Bitwise operators are similar to the logic operators, but they perform the same logical operations on bits.

C++ Coding Find Factorial using recursion - User enters a number which stores in variable "num". Then number "passes as argument" in function call A static variable is used to check that how many times function is called. When

C++ Language Header File For Linked List - Return true if "empty"; else false. Remove all items. Return position to prior to first. Return "first position". Insert x after "current iterator" position p. Return position that views. ListItr

C Program to calculate Area of a Polygon - Given the coordinates of the vertices of a convex polygon, calculate its area and perimeter. Subdivide it into triangles and calculate the area of each triangle with the

Program Checks if Number is Even or Odd - If a number is exactly divisible by 2 then its an even number else it is an odd number. In this we have shared 2 ways to check whether the input number is even or odd. Using Modulus

Implementation TopDown Red Black Tree - Test if the tree is logically empty. Return true if empty, false otherwise. Then print the tree contents in 'sorted order'. Internal method to print a subtree t in sorted order. And Internal

2D-Drawing Circles, Arcs, Rectangle, Lines - This 2D-Drawing Program is used for drawing circles, arcs, rectangle, lines and many more. Controls for the two-dimensional drawing. Enter radius of circle, enter radius, starting...

Code Find Sum of lower Triangular matrix - C program to read elements in a matrix and find sum of lower triangular matrix. How to find sum of lower triangular matrix in C. Find sum of lower triangular matrix, we need to

C Program Code Checks Vowel Consonant - C Programming Language check whether an alphabet is Vowel or Consonant using if else. English alphabets a, e, i, o, u both lowercase & uppercase are known as vowels. Alphabets