What's the problem with the following:
Why is it not allowed, and how is it different from:Code:#define K 3; int max(int a, int b) { return a>b? a : b; } int main() { cout<<max(K, K+3); return 0; }
Thanks in advanced.Code:int max(int a, int b) { return a>b? a : b; } int main() { cout<<max(3, 3+3); return 0; }