I don't understand why the following code won't compile:
#include <iostream>
#define SHORT_NAME 4;
int func(int arg)
{
return arg;
}
int main()
{
return func(SHORT_NAME); // Error: expected a ')'
}
Should I be using const int SHORT_NAME = 4
on line 2 instead?