471,831 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,831 software developers and data experts.

for(;0;) printf("hello");

for(;0;)
printf("hello");

even the condition s wrong i get a hello printed on the screen
y s this happening

Sep 10 '06
51 3746
ba***********@gmail.com said:

<snip>
But I would also like to add that in code like this:

/* ... */
}
}
}
}
}
}

Comments to indicate which block is being closed wouldn't hurt.
Fair comment. I guess there are still a few people left who don't use vim.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Sep 12 '06 #51

Spidey wrote:
for(;0;)
printf("hello");

even the condition s wrong i get a hello printed on the screen
y s this happening
Simon Biber wrote:
Turbo C is known to be buggy.
Yeah, this is what happens in Turbo C 3.0, although it does warn about
"unreachable code".

Sep 12 '06 #52

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.