Function that have parameter and makes an integer mask, C/C++ Programming

Write a function that has an int parameter n, makes an integer mask having the bit 1 at the nth place from the rightmost bit, and returns the mask. For example, when n = 5 is passed to the function, the function will return 0x20 (Note that 0x20 is 00000000 00000000 00000000 00100000).

Posted Date: 3/29/2013 3:02:32 AM | Location : United States







Related Discussions:- Function that have parameter and makes an integer mask, Assignment Help, Ask Question on Function that have parameter and makes an integer mask, Get Answer, Expert's Help, Function that have parameter and makes an integer mask Discussions

Write discussion on Function that have parameter and makes an integer mask
Your posts are moderated
Related Questions
Pure Virtual Functions An abstract class is one, which is used just for deriving some other classes. No object of this class is declared and used in the program. Likewise, ther

Radix sort - C program: Write a program in c to define a radix sort. void main() {  int array[100],n;  int i;  void radix(int *,int);  printf ("How many nos\

C Program for SELECT THE CHAR WHICH U WANT #include stdio.h> #include conio.h> void main() {             void substr(char[], int *, int *);           int a,b

What is abstraction? - Simplified view of an object in user's language is termed as abstraction. - It's the simplest, well-defined interface to an object in OO and C++ which

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b

demonstrates shearing about origin

padovan string for a natural number is defined

write a program in c language to implement stacks in a single array

the issue of oil spills

You are working for a computer gaming company and have been asked to look at a survival game.  You will be simulating a rabbit stranded on an island, collecting a large number of s