write a program to print infinte number

Answer Posted / reshma

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When we use void main and int main?

593


What is c++ used for today?

673


Where is volatile variable stored?

655


What is equivalent to ++i+++j?

648


Is null a keyword in c?

741






If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1598


What is the difference between union and anonymous union?

841


Write a program to check palindrome number in c programming?

601


what will be maximum number of comparisons when number of elements are given?

1413


What is a struct c#?

605


What is restrict keyword in c?

649


Describe wild pointers in c?

644


How #define works?

624


What is a structural principle?

646


What is function prototype?

613