Cpp Preprocessor Directives Questions

Interview Questions
  1. Home
  2. Tutorials
  3. Cpp
  4. Preprocessor Directives
  5. Questions

List down benifits of using preprocessor directives in C++ programs.

Write down syntax of define directive.

Differerniate between #ifdef and #ifndef directives.

Write down example that demonstrate #define directive with arguments.

Difference between #if and #ifel preprocessor directive.

Define #error preprocessor directive.

Differentiate between #define and #undef directive.

List down names of preprocessor directive.

Define preprocessor directives used in C++

Comments
Login to TRACK of Comments.