# C Programming Code Examples

## C > Bitwise Operators Code Examples

### Program to Check if a given Integer is Power of 2 using Bitwise Operators

C Print Range of Fundamental Data Types -
C Program Code to Convert the number of bytes into bits by multiplying the bytes with 8. Use two functions namely signed_one() and unsigned_one() for calculating the range

C Programs Finds Area of Scalene Triangle -
'Scalene Triangle' does not have sides having Equal Length & No angles of Scalene Triangle are equal. To calculate Area, we need at least two sides and the angle included by them. So

C Implement Priority Queue to Add Delete -
Add the elements into the queue according to the order (ascending descending). Delete the elements. Function to create an empty priority queue. Function to insert value into

C++ Language & One Time Pad Algorithm -
C++ program encodes any message using the technique of 'One time' pad cipher technique. Input is not Case Sensitive and works only for all characters. 'White Spaces' are not ignored

C++ Coding Repeatedly Search Same Text -
C++ program performs Naive string matching without using any specific library functions. A text and a pattern is given as input. Pattern is 'searched' for in the text and all "instances" of

Code Put Even and Odd elements of array -
C program to input elements in an array and put all even and odd elements in 2 separate array. Separate even and odd elements of a given array in 2 separate array containing...

C++ Coding Sorts a Data using Heap Sort -
Heap sort is comparison based algorithm. It's selection sort sample. The time complexity is O(n*log(n)). Build a max heap using the given data element. And then Delete the root node

The Guessing Game code C programming -
Declare variable to be guess. Declare variable to store guessed date. Declare variable to test for invalid input. Display the intro and directions. Get the users guess and store it.