What does assert() do?
Answers were Sorted based on User's Feedback
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 |
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 |
What is cookies in c# asp net?
What is string [] args in c#?
What is the real use of interface in c#?
int i,string s, String s1 Which is valuetype which is refrence type.
What is dictionary class in c#?
Why do we need dependency injection in c#?
What are the extension methods in c#?
What are the uses of delegates in c#?
What is routing in c#?
Why do we override in c#?
How long will it take to learn c#?
What?s a satellite assembly?