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
Netherlands10341 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
Netherlands10341 Posts
| ||
|
Steelflight-Rx
United States1389 Posts
thanks for the help | ||
|
R1CH
Netherlands10341 Posts
| ||
| ||
WardiTV 2025
Group Stage 1 - Group B
Sparkling Tuna Cup
Weekly #114
Percival vs TriGGeRLIVE!
[ Submit Event ] |
StarCraft 2 StarCraft: Brood War Hyuk Dota 2Jaedong BeSt EffOrt Stork firebathero Last Killer Mini 910 [ Show more ] League of Legends Counter-Strike Super Smash Bros Heroes of the Storm Other Games Organizations StarCraft: Brood War StarCraft 2 StarCraft: Brood War
StarCraft 2 • StrangeGG StarCraft: Brood War• AfreecaTV YouTube • intothetv • Kozan • IndyKCrew • LaughNgamezSOOP • Migwel • sooper7s Dota 2 League of Legends |
|
OSC
IPSL
Bonyth vs KameZerg
BSL 21
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
Wardi Open
StarCraft2.fi
Monday Night Weeklies
Replay Cast
WardiTV 2025
StarCraft2.fi
[ Show More ] PiGosaur Monday
StarCraft2.fi
Tenacious Turtle Tussle
The PondCast
WardiTV 2025
StarCraft2.fi
WardiTV 2025
StarCraft2.fi
RSL Revival
IPSL
Sziky vs JDConan
RSL Revival
Classic vs TBD
herO vs Zoun
|
|
|