C Language Solution (Macros):
C language tried to solve this problem by MACROS, which are type independent, but Macros comes with side effects.
For example: The below macro will work fine for some, but may give unexpected results in some other cases
#define SQUARE(X) (X)*(X) ... ... int a = SQUARE(2+3); // OK.. will compute (2+3)*(2+3) int b = SQUARE(a++); // UNDEFINED.. will compute (a++) * (a++)
Next: C++ Solution …
1 Comment
Great goods from you, man. I’ve understand youir stuff previous to
and you’re just too fantastic. I really like
what you’ve acquired here, certainly like what you’re
stating and the way bby which you are saying
it. You mwke it enjoyable and you continue to care for to keep
it sensible. I can not wait to read far more from you.
That is actually a great website.