User Tools

Site Tools


journal:fall2019:kdrake11:week6

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
journal:fall2019:kdrake11:week6 [2019/09/25 23:13]
kdrake11 bitwise 'or' operator
journal:fall2019:kdrake11:week6 [2019/09/25 23:15] (current)
kdrake11 [25SEP19]
Line 3: Line 3:
 ====25SEP19==== ====25SEP19====
  
-A single pipe '​|'​ is used for a binary (or bitwise) '​or'​ operator in the c programming language. We used this in the compare function of the sll1 project to store information about list1 and list2 in a single unsigned char. ie; unsigned char code = 0x40|0x04; results in 0x44 being stored. ​Defined ​in another header file to tell us compared information about a single list, or both lists as needed.+A single pipe '​|'​ is used for a binary (or bitwise) '​or'​ operator in the c programming language. We used this in the compare function of the sll1 project to store information about list1 and list2 in a single unsigned char. ie; unsigned char code = 0x40|0x04; results in 0x44 being stored. ​0x40 and 0x04 were defined ​in another header file to tell us compared information about the lists. Compare status of a single list, or both lists could be stored, and read, from a single unsigned char this way.
 =====discrete week6===== =====discrete week6=====
 ---- ----
journal/fall2019/kdrake11/week6.txt · Last modified: 2019/09/25 23:15 by kdrake11