728by90ad
C Preprocessor - Point Out Correct Statements Multiple Questions and Answers.
Exercise Questions ::
C Preprocessor
| Answer: Option D |
|
|
| Explanation: |
|
The macros #ifdef #if #elif are called conditional macros.
The macro #undef undefine the previosly declared macro symbol.
Hence all the given statements are macro preprocessor directives. |
| See More Information |
|
|
|
Tutorial Link: |
Published by:Michael Daani
2. | Which of the following are correctly formed #define statements in C? |
| |
| A. | #define CUBE (X) (X*X*X); |
| B. | #define CUBE(x) (X*X*X) |
| C. | #define CUBE(X)(X*X*X) |
| D. | #define CUBE(X) {X*X*X} |
|
|
Published by:Michael Daani