Quote Originally Posted by Yarlini Amirthanesan View Post
Hello expects. Can you tell me wot is the difference between a function and macro in C++. They lok the sam. Can you tell? When you use a macro and not a function?

Email: [email protected]
No: From the call alone, it is not possible to know if you are using a macro, a function, or an object's operator().

However, there is a very widespread coding practice that says that macros should be in ALL_CAPS:
Code:
DO_SOMETHING(); //Probably a macro
do_something(); //Probably a function