Define a constant value : Constant « Data Type « C / ANSI-C






Define a constant value

#include <stdio.h>

int main(void)
{
  const int i = 10;

  printf("%d", i); 

  return 0;
}


           
       








Related examples in the same category

1.Convert inches to yards, feet, and inches
2.Calculate a discounted priceCalculate a discounted price
3.Cannot assign value to a constant variable