Write a C program that will accept a hexadecimal number as
input and then display a menu that will
permit any of the following operations to be carried out:
Display the hexadecimal equivalent of the one's complement.
(b) Carry out a masking operation and then display the
hexadecimal equivalent of the result.
(c) Carry out a bit shifting operation and then display the
hexadecimal equivalent of the result.
(d) Exit.
If the masking operation is selected, prompt the user lor
the type of operation (bitwise and, bitwise exclusive
or, or bitwise or) and then a (hexadecimal) value for the
mask. If the bit shifting operation is selected.
prompt the user for the type of shift (left or right), and
then the number of bits.
Test the program with several different (hexadecimal) input
values of your own choice.
No Answer is Posted For this Question
Be the First to Post Answer
WHO WROTE C LANGUAGE?
write a programme that inputs a number by user and gives its multiplication table.
Can we use any name in place of argv and argc as command line arguments?
int main() { int x = (2,3,4); int y = 9,10,11; printf("%d %d",x,y); } what would be the output?
Taking an example,differentiate b/w loader and linker ?
difference between c and c++
The differences between Windows XP and Windows Visa
how can f be used for both float and double arguments in printf? Are not they different types?
How can I increase the allowable number of simultaneously open files?
What is meant by inheritance?
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
What is I ++ in c programming?