0
C
Anyone plz tell me the purpose of #define INF in c
2 Réponses
+ 7
#define is a preprocessor directive. They are processed before compilation of a code.
It is used to create macros in C/C++
INF is a macro which should have some constant value or a piece of code.
Eg. #define PI 3.1417
PI is a macro having constant value.
Whenever and wherever this PI is used in the code, it will be replaced by 3.1417
+ 1
ok thanks alot