The role of #ifdef and #ifndef

Viewed 178979
#define one 0
#ifdef one
printf("one is defined ");
#ifndef one
printf("one is not defined ");

In this what is the role of #ifdef and #ifndef, and what's the output?

4 Answers

The code looks strange because the printf are not in any function blocks.

Related