Programming in C - Master Assignment

27. The use of macro in the place of functions

  • Option : D
  • Explanation :
    Use of functions involves storing the current contents and branching to its starting address. These things add to the execution time. On the other hand, macro substitution increases the code size. This is of serious concern, if the macro is used in many places.
Cancel reply
Cancel reply

29. How many bits are absolutely necessary to store an ASCII character?

Cancel reply
Cancel reply

30. If 7 bits are used to store a character, the percentage reduction of needed storage will be

  • Option : D
  • Explanation :
    For each 8 bits one can save 1 bit. So percentage reduction will be 1 / 8 * 100 i.e. 12.5%.
Cancel reply
Cancel reply