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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -