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) and c) are correct.
Explanation: 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...

Relationships

What will be an ideal response?

Computer Science & Information Technology

Which of the following is NOT a standard way of reducing the file size of a PowerPoint presentation?

A) changing the file format to a JPEG format B) removing portions of images that have been cropped C) reducing the resolution of images D) changing the theme of the presentation

Computer Science & Information Technology