Advertisement
UME14

(TEMP) README.md (pset4/CS50)

Jan 16th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. # Questions
  2.  
  3. ## What's `stdint.h`?
  4.  
  5. TODO
  6.  
  7. ## What's the point of using `uint8_t`, `uint32_t`, `int32_t`, and `uint16_t` in a program?
  8.  
  9. TODO
  10.  
  11. ## How many bytes is a `BYTE`, a `DWORD`, a `LONG`, and a `WORD`, respectively?
  12.  
  13. TODO
  14.  
  15. ## What (in ASCII, decimal, or hexadecimal) must the first two bytes of any BMP file be? Leading bytes used to identify file formats (with high probability) are generally called "magic numbers."
  16.  
  17. TODO
  18.  
  19. ## What's the difference between `bfSize` and `biSize`?
  20.  
  21. TODO
  22.  
  23. ## What does it mean if `biHeight` is negative?
  24.  
  25. TODO
  26.  
  27. ## What field in `BITMAPINFOHEADER` specifies the BMP's color depth (i.e., bits per pixel)?
  28.  
  29. TODO
  30.  
  31. ## Why might `fopen` return `NULL` in lines 24 and 32 of `copy.c`?
  32.  
  33. TODO
  34.  
  35. ## Why is the third argument to `fread` always `1` in our code?
  36.  
  37. TODO
  38.  
  39. ## What value does line 65 of `copy.c` assign to `padding` if `bi.biWidth` is `3`?
  40.  
  41. TODO
  42.  
  43. ## What does `fseek` do?
  44.  
  45. TODO
  46.  
  47. ## What is `SEEK_CUR`?
  48.  
  49. TODO
  50.  
  51. ## Whodunit?
  52.  
  53. TODO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement