fork(7) download
  1.  
  2. /* header files */
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <math.h> /* main */
  6. int main( void )
  7. { char s[] = " sno ";
  8. char empty[] = "";
  9. if ( isnan(nan(s)) )
  10. {
  11. printf(" nan(s): NaN\n ");
  12. }
  13. if ( isnan(nan(empty)) )
  14. {
  15. printf(" nan(empty): NaN\n ");
  16. }
  17. if ( isnan(nan( NULL )) )
  18. {
  19. printf(" nan(NULL): NaN\n ");
  20. }
  21. return EXIT_SUCCESS ;
  22. }
  23.  
Runtime error #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
Standard output is empty