|
-
Jan 14th, 2006, 08:45 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] sizeof
Could someone tell me why the following code doesn't work?
#if sizeof(int) > 1
//do something
#endif
When it's compiled it doesn't like the use of the sizeof operator and throws out an error... forgot what the error was, I did this at work.
I'm sure it must be something to do with the precedense of compilation but I can't find anything on the web that explains the failure.
I'm using a keil c166 compiler.
Any help, much appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|