Comment on Tutorial - assert() Function Example program in C By Jagan



Comment Added by : czx

Comment Added at : 2010-09-17 07:23:20

Comment on Tutorial : assert() Function Example program in C By Jagan
"If you enter zero, the assert() macro forces abnormal program termination."

It's not true, please fix.

This is the code:
assert(x >= 0);

assert will be triggered ONLY with negative value.


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hi, you put a semicolon after "int main()&quo
View Tutorial          By: noel4037 at 2009-12-28 06:40:17

2. very nice and good introduction for beginners.
View Tutorial          By: annie at 2011-11-23 06:50:32

3. Nice work. Thanks
View Tutorial          By: Karthik at 2009-09-30 08:02:36

4. sir i want how to write record into file and readi
View Tutorial          By: danny at 2011-12-23 16:30:26

5. Hi Sir...
sir i am working on Speech to Tex

View Tutorial          By: Sadaquat at 2012-08-19 07:51:28

6. 3. Write a program that will continuously ask for
View Tutorial          By: basil at 2011-08-04 13:00:30

7. plz can u give me code for key excange b/n pda &am
View Tutorial          By: visnas at 2009-05-04 20:18:32

8. thank u.....
View Tutorial          By: DiptaRanjan at 2013-02-02 14:56:45

9. Hi,
this is excellent stuff and I highly ap

View Tutorial          By: Nanda at 2007-11-02 04:58:30

10. Please help .... I can't access this code. so any
View Tutorial          By: Sonu Kumar at 2014-02-26 11:31:08