#ifdef in c

58

#ifdef in c -

#include <stdio.h>
#define YEARS_OLD 10

int main()
{
   #ifdef YEARS_OLD
   printf("TechOnTheNet is over %d years old.\n", YEARS_OLD);
   #endif

   printf("TechOnTheNet is a great resource.\n");

   return 0;
}

Comments

Submit
0 Comments