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

If you donot specify an access modifier for a method, what is the default access modifier?

545


What is alias in c#?

537


Name some properties of array.

485


explain the nature of the assembly work?

2104


Is python easier than c#?

497






How can I use .NET components from COM programs?

498


What is uint16?

502


How many parameters can a method have c#?

486


Which is better interface or abstract class in c#?

445


Define assert() method? How does it work?

629


What are boxing and unboxing?

525


What is a cs file?

523


Explain the difference between // comments, /* */ comments and /// comments?

500


How do I convert a string to an int in c#?

520


What is sql transaction in c#?

480