If you put assert macros throughout your code, then

a) You have to put up with the resulting inefficiency and program halts with messages indecipherable to the user until you edit your code to remove them.
b) You can put #define NDEBUG in your code in the file just before the #include directive.
c) With most command line compilers and IDEs (integrated development environment), you can define NDEBUG for the compile session by using an IDE menu option or you can use the compiler command line option –DNDEBUG.


b) You can put #define NDEBUG in your code in the file just before the #include directive., and c) With most command line compilers and IDEs (integrated development environment), you can define NDEBUG for the compile session by using an IDE menu option or you can use the compiler command line option –DNDEBUG.

a) is wrong. (And horribly pessimistic.) Easy options exist as pointed out in b) and c) to prevent the macros from being compiled into your code.

Computer Science & Information Technology

You might also like to view...

What is the method of increasing the space between the dots in leaders?

What will be an ideal response?

Computer Science & Information Technology

Instead of typing text in PowerPoint, you can import an outline._________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A(n) ____ is a transition from one color to another.

a. gradient b. contrast c. evaluation d. tint

Computer Science & Information Technology

Unit testinguncovers any defects in the interface between individual components of an information system.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology