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
- set_symmetric_difference in C++ with Examples
- cauchy_distribution a() in C++ with Examples
- ratio_not_equal() in C++ with examples
- ratio_equal() in C++ with examples
- ios bad() function in C++ with Examples
- ios eof() function in C++ with Examples
- mbrtoc32() in C/C++ with Examples
- mbrtoc16() in C/C++ with Examples
- std::allocator() in C++ with Examples
- SDL library in C/C++ with examples
- memset() in C with examples
- iswgraph() in C/C++ with Examples
- negative_binomial_distribution in C++ with Examples
- iswprint() in C/C++ with Examples
- std::mismatch() with examples in C++
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.