Question 1Medium
The C-preprocessors are specified with __symbol.
- #
- $
- " "
- None of the mentioned
Answer: A. #
Explanation
The C-preprocessors are specified with the # symbol because it is a special character in C that indicates a preprocessor directive, such as including a header file or defining macros.
Step-by-step solution
- Preprocessor directives such as #include, #define and #if all begin with the # symbol.
- The # must be the first non-blank character on the line for the directive to be recognised.
- $ and quotes are not directive markers in standard C.
- So the answer is: #.
Why the other options are wrong
- B. $ is not a preprocessor directive symbol in standard C.
- C. A pair of quotes with a space is not a directive marker.
- D. # is the directive marker, so an option is correct.
Tip: Every preprocessor directive begins with #.