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

What four types of properties are supported by an ActiveX control?

1 Answers  


Psychic Window Technique

2 Answers   E Logic, Wild Net,


Why not virtual functions to handle messages?

5 Answers  


What MFC base classes provide support for ActiveX controls?

2 Answers   Wipro,


What is the difference between OnInitialUpdate and OnUpdate?

5 Answers  


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

3 Answers   E Logic,


is it possible to display a window .without using windowclass

1 Answers   E Logic,


Why Array Index starts from Zero

30 Answers   HCL,


How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


What is the base class for MFC Framework ?

2 Answers   Mphasis,


Given two processes, how can they share memory?

2 Answers   Microsoft,


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,


Categories