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
What is the importance of c in your views?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
Explain how can I remove the trailing spaces from a string?
Explain zero based addressing.
Why string is used in c?
How can my program discover the complete pathname to the executable from which it was invoked?
Can we change the value of constant variable in c?
why we wont use '&' sing in aceesing the string using scanf
What are the different types of C instructions?
What is use of pointer?
What happens if you free a pointer twice?
What is the difference between null pointer and wild pointer?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Can you subtract pointers from each other? Why would you?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply