The character variable requires 8 bits or 1 byte of memory to store data. Every time a variable is bitwise-right shifted (>>) or bitwise-left shifted (<<), a data bit is removed and a zero is added on the opposite side. Shifting 8 times removes all data bits and replaces them with zero.

You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.

 Vote 0

Similar topics related to this section

obtain bit mask, reverse bits, swap bits, bit set, reset/clear, toggle, xor operator, bitwise shifting, Operator precedence, operator precedence, ternary operator,

# C Programming Language (Prentice Hall Software)
# Let Us C Paperback - 2006 by Yashavant Kanetkar
# Understanding and Using C Pointers Core techniques for memory management
# Data Structures Using C and C++ Paperback - 1998
# Data Structures In C Paperback - August 11, 2008 by Noel Kalicharan