what is bitwise operator?
Answer / 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 |
Differentiate between the = symbol and == symbol?
How can you increase the size of a dynamically allocated array?
what is the stackpointer
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
how to find the binary of a number?
Diff: between this 2 classes in terms of memory class A { int i; char c; double d; }; class A { double d; int i; char c; }; How it is calculating?
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }
What is the difference between test design and test case design?
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
LOGIC OF Bodmas?
Is void a keyword in c?