What is #define in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is #define in c++

In c++ language we need to define an imaginary function and then we call it any where in main function or in any other function.

4th Mar 2018, 7:29 PM
Ihtisham Bashir
Ihtisham Bashir - avatar
2 Answers
+ 3
Thanks for asking a question and answering it😂
4th Mar 2018, 7:33 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 3
That barely touches the possibilities of #define. It can define constants, shorter names for anything, change the looks of the language, hide the details that make an implementation of something confusing, plus other things I've never done.
5th Mar 2018, 1:07 AM
John Wells
John Wells - avatar