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
What is FIFO?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???
What is 1d array in c?
explain what is an endless loop?
How can I direct output to the printer?
What is array of pointers to string?
is it possible to create your own header files?
What is substring in c?
Explain how does free() know explain how much memory to release?
Program to display given 3 integers in ascending order
If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.