Chapter 4: Programming Exercises
1. Write a program that will prompt for the input of two
integer values. Then using the bitwise shift
operators, show the result of:
left shifting the first number by the second
right shifting the first number by the second
exclusive OR of the first number by the second
bitwise OR of the first number by the second
bitwise AND of the first number by the second.
the one's complement of both numbers.
2. Write a program that will display the size in bytes of
each of the following data types:
char
char *
int
long
short
float
double
long float
long double