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
array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}
i want to know the procedure of qualcomm for getting a job through offcampus
what are non standard function in c
What is echo in c programming?
struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]
Explain what is a static function?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Explain how can a program be made to print the line number where an error occurs?
Is the exit() function same as the return statement? Explain.
0 Answers Agilent, ZS Associates,
marge linklist
What is wrong with this program statement?
code for bubble sort?