Write a program for print infinite numbers
Answers were Sorted based on User's Feedback
Answer / chavidi
void main()
{
int i=0;
while()
{
printf("%d",i)
i++;
}
}
| Is This Answer Correct ? | 25 Yes | 12 No |
Answer / shani jaiswal
main()
{
static int i=0;
printf("%d",i);
i++;
main();
return 0;
}
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / 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 |
What is the purpose of ftell?
what r the cpu registers r ther?
Explain why c is faster than c++?
What should malloc(0) do?
WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?
28 Answers 3D PLM, Code Studio, Deltech, IBM,
difference between i++* and *++i
with out using main how to execute the program?
C language questions for civil engineering
Why does this code crash?
What is the value of uninitialized variable in c?
What are the 5 elements of structure?
What are the two types of functions in c?