What is the disadvantage of using a macro?
Answer / Sachin Narang
One major disadvantage of using macros in C++ is that they can lead to unintended side effects due to textual substitution, making code harder to understand and debug. Additionally, macros can cause issues with type safety and performance.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is #include sstream?
what is the use of void main() in C++ language?
Implement a 2 dimensional array by one dimentional array
What is operators in c++?
What are arrays c++?
const char * char * const What is the differnce between the above two?
what is data abstraction in C++?
What is friend class in c++ with example?
How do pointers work?
What does int * mean in c++?
What new()is different from malloc()?
What are friend functions in C++?