CopyRight

If you feel that any content has violated the copy-Right law please be free to mail me.
I will take suitable action.
Thanks

C/C++

Coding is an ART ; the art of Inundation ,Abstraction,Polymorphism and Inheritance.! Though these are only some of the features of OOP[Object Oriented Language]I.e C++.! these cover quite a major areas of C++ language.

I won't start with "Hello World" Program on this page but will talk about some useful functions and Features of the C/C++ language.!

1.ASSERT function

C++ has this inbuilt function in the header '.!
It's use is to check that the maximum value assigned to variable does not exceed in the code. If it does then this function breaks out of the program . It shows the line number , file name and the condition it failed when it encountered the breach of the maximum value assigned to the variable.!


as u can see the condition failed at i=6 and hence the assert function break out of the program.! 



No comments:

Post a Comment