What is the DEFINE in C language?

What is the DEFINE in C language?

Basically, By using the DEFINE we can define some shortcut of anything.


Syntax:

#define old_name new_name;


program:


#include<stdio.h>

#define int number

void main()

{

number n=10;

printf("%d",number);
}


output:

10

Read More →
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!