What does assert() do?



What does assert() do?..

Answer / abhi

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 ?    4 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Is c# lazy thread safe?

0 Answers  


How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?

0 Answers  


interface a { Method1() Method2() } class b: a { override Method1() override Method2() } what will happen & why?

5 Answers  


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

0 Answers  


Why main method is static in c#?

0 Answers  






Explain lock, monitors, and mutex object in threading.

0 Answers  


Why can?t you specify the accessibility modifier for methods inside the interface?

2 Answers  


Why do we need to serialize data?

0 Answers  


why we can't create an object for a static class?? what is the reason behind this?

4 Answers   HCL,


Does google use c#?

0 Answers  


What is boxing and unboxing in c#?

0 Answers  


Define Abstract Class in C#

0 Answers   HCL,


Categories