+ 1
#define in C
https://www.sololearn.com/post/348153/?ref=app Is the correct answer #define ? Because # include directivetell the preprocessor to start searching for the file listed #define directive directs the preprocessor to replace all subsequent occurrences which directive works both search and replace?
2 Respuestas
+ 2
Yes,
#define is the correct answer.
#include:
Preprocessor searches for the file in some directories and the contnent of a specified file is inserted into source file instead of #include directive.
#define:
Preprocessor searches and replaces all subsequent occurences of specified macro (till end of file or #undef directive)
0
Thanks 👍👍