
Day 14 Recap Questions
- How do we read/write binary files in C?
- Write the necessary syntaxes to open a binary file named
img.dat and write all the values of an int array named ray1 of size 1000 into the file. Next, read all those values into a separate array named ray2. Assume ray1 and ray2 are properly defined and initialized.
- What character represents the bitwise XOR operation? How does it differ from the OR operation?
- What happens if you apply the bitwise operation on an integer value? (extra: what if we apply to floats)
- What is the result of
(15 >> 2) || 7?
- What is the result of
(15 >> 2) | 7?