What does assert() do?

Answer Posted / akshay

assert() is mainly used for debugging the code. The expression is given in the brackets and if the expression becomes false the Assertion Failure takes place. Which simply terminates the application giving file name and line number.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I trim a space in c#?

533


What is collection class c#?

616


What are the uses of delegates in c#?

670


What is COM Interoperability?

644


What is token in c#?

629






What is the difference between early binding and late binding in c#?

592


How to use the sreamReader class to read form a text file?

648


What do you know about Translate Accelerator?

697


What does assert() do in c#?

639


What is a class level variable in c#?

587


What is int16?

592


What is difference between dictionary and list in c#?

540


Explain the feature of c# language?

575


Value Type and Reference Type Data type in C#?

623


What are the Types of JIT and what is econo-JIT

903