free c programming course
Saturday, 22 January 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