This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:cprog:fall2023:projects:dtr0 [2023/09/13 20:13] – [REPOSITORY STEPS] jbernata | notes:cprog:fall2023:projects:dtr0 [2023/09/14 02:05] (current) – [BUILD THE CODE] xcroft | ||
---|---|---|---|
Line 10: | Line 10: | ||
On a different system, you can use "hg pull" and "hg update" | On a different system, you can use "hg pull" and "hg update" | ||
=====BUILD THE CODE===== | =====BUILD THE CODE===== | ||
+ | Can use https:// | ||
+ | Example | ||
+ | | ||
+ | fprintf (stdout, " | ||
+ | | ||
+ | 0x7F = 127 so the maximum value for a signed char would be 127 | ||
=====RUN THE PROGRAM===== | =====RUN THE PROGRAM===== | ||
You can do " | You can do " | ||
Line 24: | Line 30: | ||
====STORAGE: | ====STORAGE: | ||
- | Recall there are 8 bits in 1 byte | + | The default byte size is 4, so hh (char) is half of half [(4/ |
- | ====BITWISE LOGIC: AND==== | + | |
+ | Recall, there are 8 bits in 1 byte. After you know the size of the bytes, you can multiply that by 8 to find the number of bits (EX: byte size 4 has 32 bits). | ||
+ | ====BITWISE LOGIC: AND==== | ||
+ | to use AND logic, use the "&&" | ||
====BITWISE LOGIC: OR==== | ====BITWISE LOGIC: OR==== | ||