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



Ask a Question

Subscribe to Tutorials

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,
I've tried this but got a problem. Firs

View Tutorial          By: Hendrik Jabs at 2009-12-10 02:46:13

2. I am in search of the institute to appear for the
View Tutorial          By: Rahul at 2012-07-02 11:18:18

3. thnx
View Tutorial          By: Prakash at 2011-07-27 03:05:17

4. its very nice
View Tutorial          By: keerthi at 2012-06-28 17:04:36

5. hi I am getting error while running this program a
View Tutorial          By: sampada at 2012-04-18 07:45:19

6. nativeFinalize: Error closing Handle 6
and

View Tutorial          By: yash at 2008-05-16 17:43:42

7. Hi i 've used this SMSClient.java in my simple pro
View Tutorial          By: Prakah at 2011-12-22 17:10:48

8. javax.microedition.io.ConnectionNotFoundException:
View Tutorial          By: yellaiah at 2014-12-27 05:18:52

9. S.N. Constructor & Description
1 String

View Tutorial          By: Jameesh at 2015-03-05 07:09:38

10. I am facing the same problem but org-netbeans-modu
View Tutorial          By: Anonymous at 2009-05-08 07:59:09