write a program to print infinte number

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it usually a bad idea to use gets()? Suggest a workaround.

895


What is wrong in this statement?

601


explain what is an endless loop?

607


What is methods in c?

636


What is the difference between constant pointer and constant variable?

742






What is atoi and atof in c?

612


What are the parts of c program?

627


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

607


What is a structure member in c?

537


how to construct a simulator keeping the logical boolean gates in c

1722


What are the two types of structure?

569


Explain what is the difference between #include and #include 'file' ?

579


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

598


What is extern storage class in c?

509


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

683