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
Write a programm such that if user enter 11.25 it roundup to 11 but if user enter 11.51 upto 11.99 it will round up to 12 i.e.;convert the floting point value into integer format as explain above..
What are the types of pointers in c?
What is zero based addressing?
how to find anagram without using string functions using only loops in c programming
What are the 4 types of functions?
What are the data types present in c?
What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }
What is the scope of static variables?
Explain argument and its types.
What is the difference b/w Structure & Class?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); } what is the output?
7 Answers AMCAT, HCL, Ramco, Zycus Infotech,