The differences between if else and #if #else #endif

后端 未结 3 1900
感情败类
感情败类 2021-01-29 15:36

I am confused between the if/else and #if/#else/#endif constructs.

  1. What are the differences betwee
3条回答
  •  半阙折子戏
    2021-01-29 16:31

    if(...) and else(...) conditions are evaluated at runtime. #if, #else are evaluated before compile time by the preprocessor.

提交回复
热议问题