P215. WAP which contains multiple main inform to preprocessor, place any one main in .i file
#include<stdio.h>
#define
op 1
#if(op==1)
void
main()
{
printf("Task 1..\n");
}
#elif(op==2)
void
main()
{
printf("Task 2..\n");
}
#elif(op==3)
void
main()
{
printf("Task 3..\n");
}
#else
void
main()
{
printf("Task 4..\n");
}
#endif
Comments
Post a Comment