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

PROCEDUAL PROGRAMMING INTRODUCTION

flowchart of c programing to check the given number is prime or not

Question: (a) What is a function? Are functions needed when writing a C program? (b) State one of the advantages to the use of functions. (c) What do you meant by underst

Is there any difference between List x; and List x ()? Can you please provide me assignment help.

processing two jobs through 2 machine

Object Conversions Just like initialization, conversions are also done automatically when an object of a derived class is assigned to an object of the base class. Though, the c

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.

Scrape a site and save as csv Project Description: I want a programmer to create scraping software. I'll want every page scraped of name, job title, company, and url. There a

M em b e r d e r e f e r e n c i ng o p e r a t o r s: T h e s e op e r a t o r s w i l l b e d i s c u s s e d l a t