Define generic bitwise operations, C/C++ Programming

Define Generic Bitwise Operations?

Bitwise operators only work on an incomplete number of types int and char. It turns out there's above one kind of int. In particular there's short int, there's unsigned int, there's long int, and then unsigned versions of those ints. The "C" language doesn't specify the difference between an int, a short int and a long int, except to state that:

sizeof( short int ) <= sizeof( int ) <= sizeof( long )

You will find that these sizes differ from compiler to compiler. The sizes don't have to be distinct. That signify all three sizes could be the same or two of three could be the same provided that the above restrictions are held.

The Bitwise operators fall into two categories unary bitwise operators and binary bitwise operators. The Binary operators take two arguments while unary operators only take one. 

Posted Date: 6/13/2013 6:56:41 AM | Location : United States







Related Discussions:- Define generic bitwise operations, Assignment Help, Ask Question on Define generic bitwise operations, Get Answer, Expert's Help, Define generic bitwise operations Discussions

Write discussion on Define generic bitwise operations
Your posts are moderated
Related Questions

Q: Can I overload operator == so it allow me compare two char[] by a string comparison? A: No: at least one operand of particular overloaded operator should be of some user-defi

Question 1: (a) Describe the following objects and condition states: (i) ifstream and ofstream objects (ii) eof(), fail(), bad() and good() functions. (b) Write a C++ pr


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

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

void main() { int *p, *q, i ; p=(int*)100; q=(int*)200; i=q-p; printf("%d",i); } }

what is the first thing I need to know about Programming?

I am working on a program that allows a player to play a game against the computer. In this game the player can only chose to draw 1, 2, or 3 toothpicks. How do I make restrictions