a program in C language that  perform bitwise left shift << operation.

Output:
 Enter any any decimal number: 5
 Result after bitwise << operation a<<2 is: 20
Explanation:
In the main() function of the example above, we start by declaring and accepting an integer variable to the decimal value 5 using the basic standard library function scanf() .
In the next step, we declare the ans of another variable and assign a value to it by performing the left shift operation on the value of a.
Here, we use the << bitwise left shift operator which shifts the bits of a 2 positions to the left from a<<2.
. The output result of the left shift operation is stored in an integer variable 'ans' where the result is 20. The binary representation of 5 (00000101) is shifted two places to the left, resulting in 20 (00010100) in decimal form.
It then uses the printf() function to display the result of the bitwise << operation on the console with the message 'Result after bitwise << operation a<<2 is: %d' where %d is a placeholder for the value of ans.
The program exits with an exit status of 0, indicating completion without errors. Note that the left shift operation actually causes the value of a to be multiplied by 2 to the power of 2 resulting in 20.


1.Write a program to add two numbers using the '+' operator.
2.Write a program in C to subtract two numbers using the '-' operator.
3.Write a program in C to multiply two numbers using the '*' operator.
4.Write a program to divide two numbers using the '/' operator.
5.Write a program in C to find the remainder of two numbers using the '%' operator.
6.Implement a program in C to perform bitwise AND on two numbers using the '&' operator.
7.Write a program in C to perform bitwise OR on two numbers using the '|' operator.
8.Write a program to perform bitwise XOR on two numbers using the '^' operator.
10.Implement a program in C to perform bitwise right shift on a number using the '>>' operator.
11.Write a program to in C check if a number is even or odd using the bitwise AND operator.
12.Write a program in C to swap two numbers without using a temporary variable.
13.Write a program in C to find the minimum of two numbers without using the 'if' statement.
14. Write a program in C to check if a number is negative without using the 'if' statement.
15. Write a program in C to toggle a particular bit in a number using bitwise XOR.

Other Topic:-->>Nested While Loop. || conditional statements Assignments in C.