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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer to pointer in c?

637


What Is The Difference Between Null And Void Pointer?

650


what is the syallabus of computer science students in group- 1?

1846


Differentiate between the expression “++a” and “a++”?

709


What is default value of global variable in c?

564






When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

592


What is time null in c?

587


How to throw some light on the b tree?

607


What is string function in c?

544


Is linux written in c?

603


What is the meaning of && in c?

554


Is anything faster than c?

591


What is the difference between declaring a variable and defining a variable?

726


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

773


What is pass by reference in functions?

327