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

I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)

2 Answers   Invensys,


What is document-view architecture ? Give me one real time example for SDI ?

2 Answers  


Tell me about different kinds of synchranization objects ?

6 Answers  


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.

3 Answers   ABC, HCL, Infosys,






What is the use of CCmdTarget ?

4 Answers  


Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?

2 Answers   Sony,


how does conditionally close the Dialog Box ?

2 Answers   Infotech,


Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


What is serialization ?which function is responsible for serializing data ?

5 Answers  


How to convert the content of buffer into lower case character.

3 Answers   E Logic,


what are the feauters of CObject

4 Answers   Siemens, Wipro,


Categories