You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
437 B
C#

4 years ago
/*
* C# Program to Demonstrate the Working #define Preprocessor
*/
#define B
#define A
#undef A
using System;
class Program
{
static void Main()
{
#if A
Console.WriteLine("'A' is Displayed Based on the undef Directive ");
#elif B
Console.WriteLine("'B' is Displayed Based on the undef Directive");
#endif
Console.ReadLine();
}
}
/*
'B' is Displayed Based on the undef Directive