✍️ Get Writing Help
WhatsApp

Macro

  1. Enumerate the differences between functions and parameter ized macros.
  2. In #include directives, some file names are enclosed in angle brackets while others are

enclosed in double quotation marks. Why? 3. Why do we recommend the use of parentheses for formal arguments used in a macro definition? Give an example. Debugging Exercises

4.Identify errors, if any, in the following macro definitions:

(a) #defi ne until(x) while(!x)

(b) #defi ne ABS(x) (x > 0) ? (x) : (–x)

(c) #ifdef(FLAG)

undef FLAG

endif

(d) #if n == 1 update(item)

else print-out(item)

endif

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102