C Program For Preprocessor Directives

Get Certified in C Programming and Take Your Skills to the Next Level

Program 1

#include<stdio.h>
#include<conio.h>
#define pf printf
#define sf scanf
#define add(a,b) a+b
#define CUBE(n) n*n*n
int add(int a,int b);
void main()
{
        int c;
        c=add(60,20);
       pf("%d",c); 
}
int add(int a,int b)
{
    int c;
c=a+b;
pf("Data Flair");
pf("\nIndore");
return c;

}

 

Did you like our efforts? If Yes, please give DataFlair 5 Stars on Google

courses

TechVidvan Team

TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.

Leave a Reply

Your email address will not be published. Required fields are marked *