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 |
List down the differences between “dispose” and “finalize” methods in c#.
What's the difference between the debug class and trace class? Documentation looks the same.
What is datatable and dataset in c#?
What is a string in c#?
Why do we use anonymous method in c#?
What is orm in c#?
Is string a class in c#?
What is the use of console readkey ()?
if we are updating a database using thread, and mean while application crashes or thread being aborted then what will happen in Database? Rollback or Database will be updated? Please explain with different scenario.
what is the need of using interface in program ex:if we have a program like this interface1() { void method1(); void method(); } class a1 : interface1 { a1 b = new b(); b.method1(); b.method2(); } so without using interface also we can achieve this then wat is the need to use the interface? plz give me the answer
What is the data provider name to connect to access database?
How do I use the 'using' keyword with multiple objects?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)