Write a program for print infinite numbers

Answer Posted / greg

#include <math.h>

static void checkinfinit(double x)
{
if (isinf())
{
printf("Infinite\n");
}
}

int main(int argc, char **argv, char **envp)
{
checkinfinite(1.0);
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c have class?

615


How to get string length of given string in c?

611


What are the types of data structures in c?

606


Explain how do you search data in a data file using random access method?

700


What is the purpose of scanf() and printf() functions?

725






What are the advantages of union?

631


What is the main difference between calloc () and malloc ()?

576


What are the 3 types of structures?

574


write a program to print data of 5 five students with structures?

1612


What is string in c language?

630


What is function definition in c?

590


What are header files in c programming?

660


What is the best organizational structure?

644


Can true be a variable name in c?

561


What is the use of ?

628