Q. Which of the following is used to define a macro in C++?

  • (A) #define
  • (B) #macro
  • (C) #include
  • (D) #ifdef
πŸ’¬ Discuss
βœ… Correct Answer: (A) #define
Explanation: The '#define' directive is used to define a macro in C++.
Explanation by: Vijay Sangwan
The '#define' directive is used to define a macro in C++.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
215
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
82%
Success Rate