Programming In C
Improve your Programming Skills with almost every C Program.
Home
Blog Posts
Life Style
Relationship
Make Money
Follow Us
Facebook
Twitter
About Us
Who We Are?
Contact Us
Saturday, January 22, 2011
define() preprocessor operator in c
define() preprocessor operator in c
#include
#define ABC 25
#if defined(ABC)
#define ABC 50
#undef ABC
#endif
int main(){
printf("%d",ABC+ABC);
return 0;
}
Output: Compilation error
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment