I am new to C and have a simple question. I use Visual Studio 2008 C++ Express edition. I added a
#define ONE 1;
statement before main(). Within my main definition I tried to
When I compiled it threw an error. I then added an
int one = ONE;
statement and it compiled fine. I am deducing that constants cannot be used directly in functions, but, must be applied to some sort of calculation first. Is that correct?