What does assert() do?



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 ?    2 Yes 1 No

Post New Answer

More C Sharp Interview Questions

List the differences between method overriding and method overloading?

0 Answers  


Is system a class in c#?

0 Answers  


What is dbcontext c#?

0 Answers  


Does c# have functions?

0 Answers  


Explain About a class access specifiers and method access specifiers.

0 Answers  






What is the use of ienumerable?

0 Answers  


How do I do implement a assert?

0 Answers  


In which situation(s), the use of "Delegate" is a good idea?

0 Answers   MCN Solutions,


What is the Use Of Interfaces? For example I have a interface as shown below? Interface IMyInterface { public void MyMethod(); } class MyClass : IMyInterface { public void Mymethod() { Some Code } } class Program { static void Main(string[] args) { MyClass obj = new MyClass(); obj.MyMethod(); } } Here What is My Question is? If i remove Interface and run this code, it will executed then what is the Use of the interface? Can any one give me the solution for this Problem? Thanks in Advance!

1 Answers   HCL,


What is the difference between dynamic and var in c#?

0 Answers  


Explain when should you call the garbage collector in .net?

0 Answers  


Distinguish between a class and struct?

0 Answers  


Categories