What is the difference between ASSERT and VERIFY?
Answers were Sorted based on User's Feedback
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 |
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 |
What four types of properties are supported by an ActiveX control?
Psychic Window Technique
Why not virtual functions to handle messages?
What MFC base classes provide support for ActiveX controls?
What is the difference between OnInitialUpdate and OnUpdate?
How to convert the content of buffer into lower case character.
is it possible to display a window .without using windowclass
Why Array Index starts from Zero
How many types of combo box are their
2 Answers Aaditya Info Solutions, E Logic,
What is the base class for MFC Framework ?
Given two processes, how can they share memory?
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.