468,491 Members | 2,009 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,491 developers. It's quick & easy.

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 3433
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 this site, you agree to our Privacy Policy and Terms of Use.