After the removal of “noreturn” keyword, C11 standard (known as final draft) of C programming language introduce a new “_Noreturn” function specifier that specify that the function does not return to the function that it was called from. If the programmer try to return any value from that function which is declared as _Noreturn type, then the compiler automatically generates a compile time error.
Ready to begin... After that abnormal termination of program. compiler error:[Warning] function declared 'noreturn' has a 'return' statement
Ready to begin... BYE BYE
This article is contributed by Bishal Kumar Dubey. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- C++ final specifier
- Understanding constexpr specifier in C++
- Difference between %d and %i format specifier in C language
- How to call function within function in C or C++
- arc function in C
- Inline function in C
- putchar() function in C
- strcmpi() function in C
- wcspbrk() function in C/C++
- wcsrchr() function in C/C++
- mbrtowc() function in C/C++
- c32rtomb() function in C/C++
- c16rtomb() function in C/C++
- mbrlen() function in C/C++
- wcsncmp() function in C/C++
- wcsrtombs() function in C/C++
- wcstod() function in C/C++
- wcstol() function in C/C++
- wcsncat() function in C/C++
- mbsrtowcs() function in C/C++
Improved By : AbhinavMadheshiya1