Skip to main content

examples of constant in c

// dought in this concept
// constants in c
#include<stdio.h>
int main()
{
   const float b = 7.333//we can only read value of b not change it
   return 0;
}

//#define preprocessor
#include<stdio.h>
#define a  3.14 // it simply define value of a as 3.14
int main()
{
   printf("%f",a);
   return 0;
}

Comments