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
- C/C++ while loop with Examples
- C/C++ do while loop with Examples
- C/C++ if else if ladder with Examples
- C/C++ if statement with Examples
- ratio_equal() in C++ with examples
- C/C++ if else statement with Examples
- SDL library in C/C++ with examples
- ratio_not_equal() in C++ with examples
- Manipulators in C++ with Examples
- wmemset() in C/C++ with Examples
- iswgraph() in C/C++ with Examples
- negative_binomial_distribution in C++ with Examples
- mbrtoc32() in C/C++ with Examples
- mbrtoc16() in C/C++ with Examples
- iswprint() in C/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.