while(a->next)
Would this loop break when a->next is null?
Sorry i've only really done java before, not really sure how while loops work in C.





| Blogs > Steelflight-Rx |
|
Steelflight-Rx
United States1389 Posts
while(a->next) Would this loop break when a->next is null? Sorry i've only really done java before, not really sure how while loops work in C. ![]() ![]() ![]() ![]() ![]() | ||
|
R1CH
Netherlands10342 Posts
| ||
|
IzzyCraft
United States4487 Posts
Or a is a int/double/long double and you input a character, but you can prevent that from breaking by use a ignore command err umm. cin >> a; if( !cin) { cin.clear(); //cin.ignore(); cin.ignore(100, '\n'); } But if your just incrementing a or something i doubt it would break normally =p ionno im very limited c knowlege T_T | ||
|
R1CH
Netherlands10342 Posts
| ||
|
Steelflight-Rx
United States1389 Posts
thanks for the help | ||
|
R1CH
Netherlands10342 Posts
| ||
| ||
StarCraft 2 StarCraft: Brood War Sea Dota 2Killer Jaedong Larva Mind Hm[arnc] scan(afreeca) EffOrt Soma Light [ Show more ] Counter-Strike Other Games Organizations
StarCraft 2 • Berry_CruncH342 StarCraft: Brood War• LUISG • AfreecaTV YouTube • intothetv • Kozan • IndyKCrew • LaughNgamezSOOP • Migwel • sooper7s League of Legends |
|
IPSL
Bonyth vs Napoleon
G5 vs JDConan
BSL
OyAji vs JDConan
DragOn vs TBD
OSC
Replay Cast
Monday Night Weeklies
Replay Cast
The PondCast
Kung Fu Cup
GSL
Replay Cast
[ Show More ] GSL
WardiTV Spring Champion…
Replay Cast
Sparkling Tuna Cup
WardiTV Spring Champion…
Replay Cast
RSL Revival
Classic vs SHIN
Rogue vs Bunny
BSL
Replay Cast
Afreeca Starleague
RSL Revival
|
|
|