Adidas Shoes For Men’s
Buy At Your Own Risk
Global cyber attack isn’t over yet, your phone could be ransomware’s next target
C Program using x##y at marco
#include”stdio.h”
#include”conio.h”
#define con(x,y) x##y
void main()
{
itn xy=20;
clrscr();
printf(“\n %d”,con(x,y));
getche();
}
C Program for preprocessor using math library function
#include”stdio.h”
#include”conio.h”
#include”math.h”
#define P a*2
#define X P/4
void main()
{
itn a=20, z;
clrscr();
printf(“\n %d”,P);
printf(“%d”,X);
getche();
}
C Program using predefined macros
#include”stdio.h”
#include”conio.h”
void main()
{
clrscr();
#ifdef __TINY__
printf(“\n TINY %d”,__TINY__);
#else
#ifdef __SMALL__
printf(“\n SMALL %d”,__SMALL__);
#else
#ifdef__MEDIUM__
printf(“\n MEDIUM %d”,__MEDIUM__);
#endif
#endif
#endif
getch();
}
C Program to print 48 to 54 using macro
#include”stdio.h”
#include”conio.h”
#define PRINT(a) printf(“%c”,a)
void main()
{
int a=2;
clrscr();
for(a=48;a<55;a++)
PRINT(a);
getch();
}
C Program for complex macro
#include”stdio.h”
#include”conio.h”
#define FUN(k) k+3.14
void main()
{
{
int x=2;
clrscr();
printf(“%g”,x*FUN(FUN(x)));
}
getch();
}
C Program for range using preprocessor
#include”stdio.h”
#include”conio.h”
#define RANGE (j>30&&j<51)
void main()
{
int j=31;
clrscr();
if(RANGE)
printf("Within Range");
else
printf("Out of Range");
getch();
}