Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
what is while(5)? Is it the same as while(1)?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
dic0nd3r
New Member
Join Date:
Feb 2013
Posts:
1
#1
what is while(5)? Is it the same as while(1)?
Feb 5 '13, 06:50 PM
i know that while(1) is infinite loop, so can i chane 1 by other values like 2,5,9,5...is it possible without error....???
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#2
Feb 5 '13, 09:05 PM
It's the same. But you know you could have just put in the code and tested it right?
Comment
Post
Cancel
donbock
Recognized Expert
Top Contributor
Join Date:
Mar 2008
Posts:
2427
#3
Feb 6 '13, 10:26 PM
You can change to any
nonzero
value and get the same results.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment