Advertisement
Guest User

Untitled

a guest
May 29th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. # Things to work on:
  2.  
  3. * Double pointers.
  4.  
  5. * Linked lists.
  6.  
  7. * **Makefiles**
  8.  
  9. * Tutorials
  10.  
  11. * Bit manipulation
  12.  
  13. * Mantissa excess 3 notation
  14.  
  15. ---
  16.  
  17. # Review Questions
  18.  
  19. * 1 : D
  20.  
  21. * 2 : B
  22.  
  23. * 3 : A (if 0xaaa is typo for 0xAA)
  24.  
  25. * 4 : A
  26.  
  27. * 5 : A
  28.  
  29. * 6 :
  30.  
  31. ```
  32. int checkBit(int i, char c){
  33.  
  34. i &= c;
  35. return i == c ? 1 : 0;
  36.  
  37. }
  38. ```
  39.  
  40. * 7 :
  41.  
  42. ```
  43. void swapInt(int *a, int *b){
  44.  
  45. int temp = *a;
  46. *a = *b;
  47. *b = temp;
  48.  
  49. }
  50. ```
  51.  
  52. * 8 : Not sure if this is what was asked.
  53.  
  54. ```
  55. int setBit(int *i, char c){
  56.  
  57. *i |= c;
  58. return 1;
  59.  
  60. }
  61. ```
  62.  
  63. * 9 : 1) first: 12bytes, second: 13bytes
  64. 2) 18
  65.  
  66. * 10 : 1) 86
  67. 2) 11110011
  68. 3) 10010010
  69. 4) 00100110
  70.  
  71. * 11 : A
  72.  
  73. * 12 : B
  74.  
  75. * 13 : A
  76.  
  77. * 14 : B
  78.  
  79. * 15 : C
  80.  
  81. * 16 : B
  82.  
  83. * 17 : E (same as 16)
  84.  
  85. * 18 : Same as 16 & 17 (01011101)
  86.  
  87. * 19 : B
  88.  
  89. * 20 : Blank Question
  90.  
  91. * 21 : A
  92.  
  93. * 22 : D (asks about 16,17,18 again for some reason)
  94.  
  95. * 23 : A
  96.  
  97. * 24 : D (trick question I think, need to work on it)
  98.  
  99. * 25 : D (not sure)
  100.  
  101. * 26 : A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement