Exforsys
+ Reply to Thread
Results 1 to 2 of 2

About Macros

This is a discussion on About Macros within the C and C++ forums, part of the Programming Talk category; Are there any disadvantages because of using many macros in a C programming language? I want to know about that. ...

  1. #1
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    145

    About Macros

    Are there any disadvantages because of using many macros in a C programming language? I want to know about that. Someone kindly provide a detailed explanation on this.


  2. #2
    rachelle is offline Member Array
    Join Date
    Apr 2006
    Answers
    97
    Macros must be handled by programmers with great care only when needed. Some of the disadvantages are:
    The ways in which macros are handled by preprocessors vary greatly from compiler to compiler.
    The impossibility of including C directives within a macro.


Latest Article

Network Security Risk Assessment and Measurement

Read More...