what is bitwise operator?

Answer Posted / harish

An operator that manipulates individual bits. The operators that we are are familiar with, such as the addition operator (+),multiplication (*),division (/) etc ... work with bytes or groups of bytes. Occasionally, however, programmers need to manipulate the bits within a byte. The C programming language supports the following bitwise operators:
>> Shifts bits right
<< Shifts bits left
& Does an AND compare on two groups of bits
| Does an OR compare on two groups of bits
^ Does an XOR compare on two groups of bits
~ Complements a group of bits
and lots more.....

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of scanf() and printf() functions?

725


What is break statement?

633


What is zero based addressing?

717


In which header file is the null macro defined?

857


write a c program for swapping two strings using pointer

2094






What does c mean in standard form?

599


How can type-insensitive macros be created?

701


Is it valid to address one element beyond the end of an array?

675


write a program to concatenation the string using switch case?

1560


What is the difference between struct and union in C?

574


Who invented bcpl language?

705


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1856


Compare and contrast compilers from interpreters.

684


What are nested functions in c?

566


What are extern variables in c?

549