Program to make another type of mask, C/C++ Programming

Write a function that has int parameter n, makes another type of mask having n bit 1's from the left most bit and 32- n bit 0's next. The mask is called netmask in this seminar, and the function will return the netmask. (Note that a netmask consists of two parts of bit 1's and bit 0's.)

Posted Date: 3/29/2013 3:06:52 AM | Location : United States







Related Discussions:- Program to make another type of mask, Assignment Help, Ask Question on Program to make another type of mask, Get Answer, Expert's Help, Program to make another type of mask Discussions

Write discussion on Program to make another type of mask
Your posts are moderated
Related Questions
limitation of linear array

how to decode the numerals to string..

Write a program that predicts users’ age (0-128 years old) with at most 7 questions. The game starts with asking the user whether he/she is younger or older than G (an initial gues

wap to cheak if a number is palindrom

A: A reference has to always refer to some object and, so, must always be initialized; pointers do not have such limits. A pointer may be reassigned to point to distinct objects wh

Program is to swap the two values which are enter by user: Program is to swap the two values which are enter by user through the function with values changed using pointers

t a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these

Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.