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 a jagged array?
Can dictionary have duplicate keys c#?
In .NET how can you solve the DLL Hell problem?
What is int32 maxvalue?
What is Abstraction?
8 Answers Google, HCL, IBM, MAHINDRA, Tech Mahindra,
What is sorting in c#?
What is the difference between as and is operators in c#?
directcast(123.34,integer) - should it throw an error? Why or why not?
What is state c#?
How many types of constructor are there in c#?
Which config file has all the supported channels/protocol?
What is constants in c#?