- Write a C program to check Least Significant Bit (LSB) of a number is set or not.
- Write a C program to check Most Significant Bit (MSB) of a number is set or not.
- Write a C program to get nth bit of a number.
- Write a C program to set nth bit of a number.
- Write a C program to clear nth bit of a number.
- Write a C program to toggle nth bit of a number.
- Write a C program to flip bits of a binary number using bitwise operator.
- Write a C program to swap two numbers using bitwise operator.
- Write a C program to check whether a number is even or odd using bitwise operator.
- Write a C program to find maximum between two numbers using conditional operator.
- Write a C program to find maximum between three numbers using conditional operator.
- Write a C program to check whether a number is even or odd using conditional operator.
- Write a C program to check whether year is leap year or not using conditional operator.
- Write a C program to check whether character is an alphabet or not using conditional operator.
Programs on Operators
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment