feclearexcept() clears the supported floating-point exceptions represented by excepts.
int feclearexcept(int excepts); excepts : Bitmask listing of exception flags to clear
The feclearexcept() function returns zero value if all the exceptions were cleared or if excepts is equal to zero.
It returns nonzero if any error occurs.
For the function to work, you should enable FENV_ACCESS, which will give your program to access the Floating point environment to test the exceptions raised.
sqrt(-1) raises FE_INVALID
- cin get() in C++ with Examples
- C/C++ For loop with Examples
- SDL library in C/C++ with examples
- negative_binomial_distribution in C++ with Examples
- C/C++ if else if ladder with Examples
- C/C++ do while loop with Examples
- wmemset() in C/C++ with Examples
- C/C++ if statement with Examples
- mbrtoc16() in C/C++ with Examples
- mbrtoc32() in C/C++ with Examples
- C/C++ while loop with Examples
- set_symmetric_difference in C++ with Examples
- ratio_equal() in C++ with examples
- ratio_not_equal() in C++ with examples
- std::allocator() in C++ with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.