What does assert() do?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a string in c#?

674


What is console readkey in vb net?

873


What is the difference between console application and windows application?

754


Whats an assembly? Describe the importance of assembly?

725


Can abstract class have private constructor c#?

742


What does == mean in c sharp?

715


Explain the difference between abstract class and interface.

884


What is dbml file in c#?

783


Explain the importance and use of each, version, culture and publickeytoken for an assembly.

719


What is difference between overloading and short circuiting?

728


When should I use static in C#?

756


Explain what is an interface in c#?

716


Explain static class members.

800


What is lazy keyword in c#?

693


What is difference between an reference type and value type in C#?

840