You need to write a console application that meets the following requirements:
If the application is compiled in Debug mode, the console output must display Entering debug mode.
If the application is compiled in Release mode, the console output must display Entering release
mode.
Which code should you use?

A.
Option A
B.
Option B
C.
Option C
D.
Option D
Explanation:
Programmatically detecting Release/Debug mode (.NET)
Boolean isDebugMode = false;
#if DEBUG
isDebugMode = true;
#endifhttp://stackoverflow.com/questions/654450/programmatically-detecting-release-debug-mode-net
D
0
0
All are wrong, D would be correct if it didn’t have (RELEASE)
http://stackoverflow.com/questions/507704/will-if-release-work-like-if-debug-does-in-c
0
0
edit : think C could work but it would be bad code.
0
0
Agree.
D is correct without RELEASE
0
0