# C++ Programming Code Examples

## C++ > Pyramid Patterns Code Examples

### Program to print half pyramid a using numbers

Bitwise operators are used in C Language -
C Program Code Bitwise operators During computation, mathematical operations like: addition, subtraction, addition and division are converted to bit-level which makes and

Count the Occurrence of each C Keywords -
C Program 'counts the occurrences' of each C keyword by array structure. "C keywords" are the words which have a definition and cannot be used as an identifier. Continue, double, for

C Code Convert Days to Years Weeks Days -
C program to input number of days from user and convert it to years, weeks and days. How to convert days to years, weeks in C. Input days from user. Store it in some variable say...

Coordinated Universal Time in C Language -
C program code returns time in Coordinated Universal Time (UTC) (essentially Greenwich mean time). Printing the local time and date. Printing coordinated Universal Time and date

Test Using DFS Whether a Directed Graph -
This C++ Program checks whether a directed graph is weakly connected or not. We can do "DFS" V times starting from every vertex. If any DFS, doesn't visit all vertices, then graph

Implementation for Deterministic Skip list -
Finding the smallest item in the tree. Return smallest item or 'INFINITY' if empty. Find the largest item in the tree. "Return the Largest" item or INFINITY if empty. Find item x in the

C Code Check Palindrome Using Recursion -
In this article we have shared two C programs to check if the input number is palindrome or not. 1) using while loop 2) using recursion. If a number 'remains same', even if we reverse its

Function Call by Reference Swap numbers -
Here we are swapping the numbers using call by reference. As you can see the values of the variables have been changed after calling the swapnum() function because swap happened