REPRESENT INFINITY and NaN IN C PROGRAMMING:
Sometimes, infinity, minus infinity and NaN are useful in programming. To use them, follow the trick...
Infinity:
Eg: int n=1/0;
Minus Infinity:
Eg: int n=log(0);
NaN(Not a Number):
Eg: int n=sqrt(-1);
Sometimes, infinity, minus infinity and NaN are useful in programming. To use them, follow the trick...
Infinity:
Eg: int n=1/0;
Minus Infinity:
Eg: int n=log(0);
NaN(Not a Number):
Eg: int n=sqrt(-1);
No comments:
Post a Comment