Review Questions

1:How can you make the code between #if and #endif of the following lines be included in the compilation
#if TRIALEDITION
    <Some code>
#endif
2:Is the second line in the following two lines of code valid? Why or why not?
using System;
#define
3:Add the necessary preprocessor directives and identifiers to the following lines of code, so that <Code part 1> is excluded from the compilation and <Code part 2> is included.
...
#if
    <Code part 1>
#endif
...
#if
    <Code part 2>
#endif
...
4:What is the major difference between standard comments and program documentation?
5:What does a documentation comment consist of? Give an example.
6:Which command must you give to the compiler to let it transform the documentation comments into a ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.