What is the difference between ASSERT and VERIFY?

Answers were Sorted based on User's Feedback



What is the difference between ASSERT and VERIFY?..

Answer / hari krishna

Hi,

ASSERT evaluates the expression only in the debug version
and will throw an exception if the result is 0 and the
program termintes.

VERIFY evalutes the expression in Debug and Release version
also and if the result is 0, will throw an exception only
in Debug mode.

Is This Answer Correct ?    18 Yes 0 No

What is the difference between ASSERT and VERIFY?..

Answer / srinivas endra

The main difference between ASSERT and VERIFY is when you
compile the release build of the program.

ASSERT will not be present in the release build version of
the executables/dlls, and its expression that would have
been evaluated will be deleted.

VERIFY will be present in the release build version of the
executables/dlls but its expression that would have been
evaluated will be left intact.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More MFC Interview Questions

1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


What is the use of message map ?

5 Answers   TCS,


What is the difference between ASSERT and VERIFY?

2 Answers  


How to update all the views whenver document got updated ?

1 Answers  


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,


Why Array Index starts from Zero

30 Answers   HCL,


What are the types of button controls?

10 Answers  


what message is sent to an application when the user presses the primary button?

1 Answers   University Exams,


What types of threads are supported by MFC framework?

2 Answers  


plzz tell me what we can do and dont in tally ERP & sap business one?

1 Answers  


What interface must be supported by an ActiveX control?

2 Answers  


Categories