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



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 any one can send me the code for HTTPclient pro
View Tutorial          By: indela at 2011-06-13 08:41:12

2. Your explanation and example for toString() is gre
View Tutorial          By: Dinesh at 2012-10-19 08:29:13

3. Good
View Tutorial          By: sandesh at 2009-10-01 01:15:29

4. i need help in writing code for multiplication pro
View Tutorial          By: viswanath at 2013-02-23 14:13:40

5. Thanks for to solve my doubt.
View Tutorial          By: ANJILAIAH at 2010-10-08 09:46:11

6. how to get this list to be alphabetically correct?
View Tutorial          By: Vincent at 2011-06-14 07:36:58

7. Only first row is exported, help to export all the
View Tutorial          By: Achyut at 2014-12-18 04:26:26

8. Please, if it is incomplete, can you please send m
View Tutorial          By: Marcio at 2009-03-01 09:06:45

9. hi every body i want full java code to send messag
View Tutorial          By: Ashray P Shetty at 2010-11-09 04:33:45

10. How can i use this code to send multiple sms using
View Tutorial          By: Shoaib at 2014-03-07 19:49:11