True, #undef can be used only on a macro that has been #define earlier
Example: #define PI 3.14
We can undefine PI macro by #undef PI
Discuss About this Question.
True, the included file does not exist it will generate the error.
The macros #ifdef #if #elif are called conditional macros.
The macro #undef undefine the previosly declared macro symbol.
Hence all the given statements are macro preprocessor directives.
#include<stdio.h> int main() { int i; #if A printf("Enter any number:"); scanf("%d", &i); #elif B printf("The number is odd"); return 0; }
The conditional macro #if must have an #endif. In this program there is no #endif statement written.
To install on iPhone/iPad: tap Share → Add to Home Screen.
Discuss About this Question.