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 |
#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?
Can you write the function prototype, definition and mention the other requirements.
program for comparing 2 strings without strcmp()
List some applications of c programming language?
main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }
What are register variables in c?
What is I ++ in c programming?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
what is the difference between #include<> and #include”…”?
Can a variable be both static and volatile in c?
what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?
What is unsigned int in c?