write a program to print infinte number

Answers were Sorted based on User's Feedback



write a program to print infinte number..

Answer / satya

it is impossible ..
because, just think generally, we can not define a infinite
number.. so how can we print...

Is This Answer Correct ?    3 Yes 2 No

write a program to print infinte number..

Answer / reshma

void main()
{
int i=0;
while(1)
{
printf("%d",&i);
i++;
}
}

Is This Answer Correct ?    1 Yes 0 No

write a program to print infinte number..

Answer / reshma

void main()
{
int i=0;
while(1)
{
printf("%d",&i);
i++;
}
}

Is This Answer Correct ?    0 Yes 0 No

write a program to print infinte number..

Answer / naresh lingampally

void main()
{
int i;
clrscr();
for(i=0;;i++)
{
printf("%d",&i);
}
getch();
}

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More C Interview Questions

how to print this pyramid * * * * * * * * * * * * *

2 Answers  


How can I find the day of the week given the date?

0 Answers  


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1 Answers  


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

2 Answers  


what is the mean of c languages.

1 Answers   Polaris,


What is string constants?

1 Answers  


Explain what is the difference between far and near ?

1 Answers  


Whats wrong with the following function char *string() { char *text[20]; strcpy(text,"Hello world"); return text; }

3 Answers   Qualcomm,


What is the purpose of the statement: strcat (S2, S1)?

1 Answers  


How can I write a function that takes a format string and a variable number of arguments?

1 Answers  


What are pointers in C?

5 Answers   KPIT,


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

5 Answers   Vector, Vector Solutions,


Categories