# C Programming Code Examples

## C > Bitwise Operators Code Examples

### C Program to Print the Range of Fundamental Data Types

C Program Code Counts Number of Digits -
C Program to count number of digits without using loop. The second logic uses logarithms to count number of digits in a given integer. Total number of digit in an integer is equal to

Use Infinite for Loop in C++ Programming -
A Loop is said to be infinite when it executes repeatedly & 'never stops'. It usually happens by mistake. When you set the condition in for loop in such a way that it never return false, it

C Programming Uses For Loop Statements -
For Loop in C. First initialization happens and the counter variable gets initialized. Second step the condition is checked, where counter variable is tested for the given condition, if...

C++ Pointers to Pointer or Double Pointer -
Dereference operator or indirection operator, noted by asterisk, is also a "unary operator" in C++ languages that uses for pointer variables. 'Double Pointer' or Pointer to Pointer need to

C++ Program Merge Sort using Linked list -
Split the Data into two equal half until we get at most one element in both half. Merge Both into one making sure the resulting 'Sequence' is sorted. Then 'recursively' split them, merge

Calculates Area & Circumference of Circle -
To calculate area and circumference we must know the radius of circle. C program code will prompt user to enter the radius and based on the input it would calculate the values. Make

Perform Preorder Non-Recursive Traversal -
C++ Program to "Print Preorder Traversal" of a given binray tree without using recursion. A binary tree node has data, left child and right child. "Helper Function" that allocates a new

C++ Implements Fermat's Little Theorem -
Program demonstrates the implementation of Fermat's Little Theorem. For the modular "multiplicative inverse" to exist, the number and 'Modular' must be 'Coprime'. Calculates