+ 2

Abort vs exit vs assert

Hi I know that above all three mentioned (abort, exit and assert) , exit is best as far as I know.. reason behind same is that it provides option to have callat function and automatically destruct object by destructor call, closes open file and so on... Is my thoughts on exit better than assert and abort correct ? If so, why to prefer assert and abort? Any use case of same would be helpful. Many thanks in advance...!

26th May 2020, 10:25 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
1 Odpowiedź
0
I got the info...it's nicely explained... But I still not get use case of assert. What is that something which doesnot fulfill exit compared to assert or which are use cases of both ?
27th May 2020, 11:06 AM
Ketan Lalcheta
Ketan Lalcheta - avatar