c - what is difference between these two library and processsor directives? -


what difference in working of these 2 directives?

#include<stdio.h> 

and

#define pi 3.14 

please explain difference between these library , processor directives?

the first 1 tells compiler include header file. second 1 defines constant "pi" replaced everywhere in code "3.14" preprocessor.

read more #define here

read more #include here

you should try , homework yourself.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -