#define directive :
#define is used for defining the constant value. In C language it is a directive which allows the definition of macros within source code.
Syntax :
eg.
output :
24x7servermanagement.com is over 10 years
#define is used for defining the constant value. In C language it is a directive which allows the definition of macros within source code.
Syntax :
Code:
#define cname value #define age 10
Code:
#include <stdio.net> #define name "24x7servermanagement.com" #define age 10 int main() { printf("%s is over %d years.\n", name, age); return 0; }
24x7servermanagement.com is over 10 years