...
Non-Compliant Code Example
Wiki Markup |
---|
In this example, adapted from \[[Dewhurst 02|AA. C References#Dewhurst 02]\] Gotcha #25, non-compliant code example a macro is used to define a maximum value, but there is no type information associated with the macro \[[Dewhurst 02|AA. C References#Dewhurst 02]\]. |
Code Block | ||
---|---|---|
| ||
#define MAX (1<<16) // ... void f(int); void f(long); // ... f(MAX); // which f? |
...