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 cookies in c# asp net?

0 Answers  


What is string [] args in c#?

0 Answers  


What is the real use of interface in c#?

0 Answers  


int i,string s, String s1 Which is valuetype which is refrence type.

6 Answers   Synechron, Sytel,


What is dictionary class in c#?

0 Answers  






Why do we need dependency injection in c#?

0 Answers  


What are the extension methods in c#?

0 Answers  


What are the uses of delegates in c#?

0 Answers  


What is routing in c#?

0 Answers  


Why do we override in c#?

0 Answers  


How long will it take to learn c#?

0 Answers  


What?s a satellite assembly?

2 Answers  


Categories