define() preprocessor operator in c
#include<stdio.h>
#define ABC 25
#if defined(ABC)
#define ABC 50
#undef ABC
#endif
int main(){
printf("%d",ABC+ABC);
return 0;
}
Output: Compilation error
C language interview questions solution for freshers beginners placement tricky good pointers answers explanation operators data types arrays structures functions recursion preprocessors looping file handling strings switch case if else printf advance linux objective mcq faq online written test prime numbers Armstrong Fibonacci series factorial palindrome code programs examples on c++ tutorials and pdf
No comments:
Post a Comment