Using #define in c..





#define is preprocessor in c.It is used for define some value using another value.Both the Symbols/String/value are treated same in the program...for eg:

#include<stdio.h>
#include<conio.h>
#define google android
void main()
{int google=12;
printf("%d",android);//android==google
getch();

}

posted by lol ik..

Comments

Popular Posts