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
Explain the red-black trees?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Discuss the function of conditional operator, size of operator and comma operator with examples.
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is the return type of sizeof?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What are the usage of pointer in c?
what is the difference between 123 and 0123 in c?
Which is best linux os?
When is a null pointer used?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What are the disadvantages of a shell structure?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.