0

C

Anyone plz tell me the purpose of #define INF in c

13th Sep 2019, 7:29 PM
Syeda Ayesha Anwar
Syeda Ayesha Anwar - avatar
2 ответов
+ 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
13th Sep 2019, 8:03 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 1
ok thanks alot
14th Sep 2019, 1:30 PM
Syeda Ayesha Anwar
Syeda Ayesha Anwar - avatar