What does assert() do?

Answer Posted / guest

In debug compilation, assert takes in a Boolean condition
as a parameter, and shows the error dialog if the condition
is false. The program proceeds without any interruption if
the condition is true.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between write and writeline?

468


What are the properties of string?

492


In which situation(s), the use of "Delegate" is a good idea?

550


Can constructor be protected in c#?

502


What is the difference between and xml documentation tag?

523






Explain synchronous and asynchronous operations?

534


Why delegates are type safe in c#?

507


What is “using” statement in c#?

475


What is event and delegates in c#?

576


Which is executed if an exception has not occurred?

506


What is session c#?

535


Tell us something about static linking and dynamic linking?

534


What are the types of comment in c# with examples?

481


How to create multi-dimensional array?

601


Explain the difference between const and static read-only?

510