Left Shift and Right Shift Operators in C
Can someone please explain the concept of Left and Right shift operators? How do we deal with binary in this?
- 6548 दृश्य
- 2 उत्तर
2 उत्तर
- Short circuit logical operators used in C language.
- What are storage classes in C language?
- Should I learn C before C++? Explain your answer
- What does it mean to be C ? Why its called C programming?
- Is C++ better than C? Explalain your answer
- Лучшие игры 3d на Андроид
- What is C language?
- Write a program to store 5 elements in the array P and 3 elements in the array Q.Produce a third array R after joining the array P and Q.Display the resultant array.
- C programming Program to print the Fibonacci series up to n numbers.
- TELL ME THE TIPS AND TRICKS of c prog
मॉक परीक्षण अभ्यास के लिए
c programming
There are two shift operators in C programming: 1)Right shift operator 2)Left shift operator. Right Shift Operator () Right shift operator shifts all bits towards the right by a certain number of specified bits. It is denoted by . 200 = 11001000 2001 = 01100100 [Right shift by one bit] 2002 = 00110010 [Right shift by two bits] 2005 = 00000110 [Right shift by five bits] Left Shift Operator () Left shift operator shifts all bits towards left by a certain number of specified bits. It is denoted by . 200 = 11001000 2001 = 110010000 [Left shift by one bit] 2004 = 110010000000 [Left shift by four bit] For more information visit:- a rel='nofollow' href='https://www.knowprogram.com/c-programming/bitwise-operators-in-c/#Right%20Shift'https://www.knowprogram.com/c-programming/bitwise-operators-in-c/#Right%20Shift/a