View Single Post

  #1 (permalink)  
Old 12-25-2006, 11:08 PM
cyrus cyrus is offline
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
Reason for Output

I have a C program as
for(i=1;0;i++)
{
printf("Hello");
}

I thought there would be no output but I found in the book I studied the answer given as Hello printed once. Is this a printing error or can anyone explain the reason for the same.
Reply With Quote