how to define in c code example
Example 1: #define in c
#include <stdio.h>
#define NAME "TechOnTheNet.com"
#define AGE 10
int main()
{
printf("%s is over %d years old.\n", NAME, AGE);
return 0;
}
Example 2: define in c
#define CNAME value
Example 3: c define
#define SIZE 42
#define MSG "Hello, World!"
Example 4: declaration in c
#include<stdio.h>
#include<conio.h>
void main()
{
//variable declaration
int a;
//assinging value to a variable;
a=10;
}