# C Programming Code Examples

## C > Bitwise Operators Code Examples

### C Program to Use Bitwise Operations to Count the Number of Leading Zero's in a Number x

Operator precedence & Associativity in C -
Function expression, array expression, unary minus, structure operators, increment and decrement, one's compliment, left and right shift, size of operator, pointer operators, type

Substring Of String Without Using Library -
C program to find substring of string without using 'Library Function'. Accept input is state forward step. Call user 'defined function' and consider following strings are entered by the

Find Armstrong Numbers between 1 to N -
The Armstrong Number is a n-digit number that is equal to the sum of nth power of its digits. 407 = 4^3 + 0^3 + 7^3 = 407 is. Input upper limit to print Armstrong number from

C Swap 2 Numbers using Bitwise Operator -
Swap two number using bitwise operator in C programming. There are tons of discussions going around the internet to swap 2 numbers without using temporary variable. We can...

Programs Performs Naive String Matching -
C++ Program perform Naive String matching algorithm. "String Searching" algorithm is an important class of string algorithm that try to find a place where one or several strings (also

Codes Binary Number to Decimal Number -
Takes the binary number (entered by user) as input and converts it into a decimal number using function. To understand this program, you should be familiar with the following C...

Program to Find Maximum and Minimum -
Program to find maximum in array elements using recursion and c conditional operator. C program code to find maximum & minimum elements in an array using recursion. How to

Enter Week Number & Prints Day of Week -
C language program input week number(1-7) & print the corresponding day of week name using if else. Input week day number. Store it in some variable say week. And print Monday