Using #elif in C

#if STATUS == 1
      #define PERSON "Single"
#elif STATUS == 2
      #define PERSON "Married"
#elif STATUS == 3
      #define PERSON "Divorced"
#elif
      #define PERSON "Widowed"
#endif

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.