What does assert() do?

Answers were Sorted based on User's Feedback



What does assert() do?..

Answer / 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 ?    5 Yes 0 No

What does assert() do?..

Answer / 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

More C Sharp Interview Questions

What is expandoobject in c#?

1 Answers  


Explain how to use an extender provider in the project.

1 Answers  


Define collections?

1 Answers  


What?s the role of the DataReader class in ADO.NET connections?

2 Answers  


What do you mean by directing?

1 Answers  


Can variables defined in interface. If yes how we can call/use it in class.

2 Answers   Synechron,


can u tell me any one steps for creatting sn.k

2 Answers  


What is c# and why it is used for?

1 Answers  


Explain the difference between a struct and a class?

1 Answers  


Are c# destructors the same as c++ destructors?

1 Answers  


What is the difference between class and namespace?

1 Answers  


What is hierarchical inheritance in c#?

1 Answers  


Categories