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 |
Are tuples mutable c#?
How do you generate documentation from the C# file commented properly with a command-line compiler?
What are abstract classes in c#?
How do you serialize in c#?
What is the value which is accepted by all data types ?
What is meant by collections in c#?
What is namespace in oops?
Does a loop recorder have to be removed?
What is the difference between these statements obj=null and obj.dispose()
What is difference between Convert.ToString(variable) and variable.ToString()
How will you get the different language strings?
What is polymorphism c# example?