belongs to collection: C Preprocessors Programs
The process to redefine a Macro is:
Example:
#include <stdio.h> #define NUM 100 int main() { //printing the value of NUM printf("NUM: %d\n", NUM); //redefining the Macor: NUM #undef NUM #define NUM 200 //printing the value of NUM printf("NUM: %d\n", NUM); return 0; }
Output
NUM: 100 NUM: 200
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Example:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer