• Post Reply Bookmark Topic Watch Topic
  • New Topic

assert keyword  RSS feed

 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do we mean by assert keyword ......
Please give an example....

Thanks
 
Rancher
Posts: 4686
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This, and many other of your postings look like homework assignments. And they are far too basic to belong here.

asserts are used for program invariants. Often in loops as
loop invariants.

And CS101 text will have much about the concept of invariants.
 
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!!

Read this:

Programming With Assertions
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!