Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASSERT?

Status
Not open for further replies.

ddddddd

MIS
Jun 20, 2002
2
US
wut does ASSERT function do?
 
It checks whether expression in the brackets is true or false. If it is false then program terminates running and shows what what the error. If it is true, program continues running.

Example:

...
x = -5
assert(x > 0);
// the program will terminate Best Regards,

aphrodita@mail.krovatka.ru {uiuc rules}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top