×
Get Full Access to UAH - CS 121 - Class Notes - Week 10
Join StudySoup
Get Full Access to UAH - CS 121 - Class Notes - Week 10

×

UAH / Engineering / CS 121 / What is the bitwise operators?

# What is the bitwise operators? Description

##### Description: These notes detail bitwise operators, what they are, and what each of them does.
1 Pages 228 Views 0 Unlocks
Reviews

Bitwise Operators

<< - left shift (takes all of the bits and shift them over however many  spaces)

>> - right shift (takes all of the bits and shifts them over to the right  however many spaces)

If any bits fall off, more zeros are rolled in from the opposite side & - bitwise AND (just like logical AND that involves two bits) |- bitwise OR (just like logical OR which involves two bits)  We also discuss several other topics like What are the different types of risk factors at multiple levels of the ecology?

^ - bitwise Exclusive OR (XOR) (only works if one bit (and only one) is set  to 1

~ - bit inversion (all of the bits get flipped to their opposites)

TYPE

BYTES

BITS

char

1

0000 0000

0x00

short

2

0000 0000 0000  0000

0x000

int

3

0000 0000 0000  0000 0000 0000

0x0000

long

4

0000 0000 0000  0000 0000 0000

0x00000

*phase 6 - add flags and functions to describe room contents

1) Add the function prototype for room description contents w/ int  roomDesc, int row, init col If you want to learn more check out towson university niche
We also discuss several other topics like fred choobineh

2) Add the function previously described as a prototype Don't forget about the age old question of What is Coevolution hypothesis?

3) Add creatures to room descriptions

4) Tell the user if the creature is dangerous or not

5) Check for item definitions

6) Check for treasure items If you want to learn more check out • What are rewards intended to do?

7) Check the doors

8) Test the function using the proper test procedure

9) Get ready for phase 7 by deciding the location of treasure items, other items, and creatures

Page Expired
It looks like your free minutes have expired! Lucky for you we have all the content you need, just sign up here
References: