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
| ||
| ||
![]() StarCraft 2 StarCraft: Brood War Calm Dota 2![]() Bisu ![]() Shuttle ![]() Flash ![]() Rain ![]() Jaedong ![]() firebathero ![]() EffOrt ![]() ZerO ![]() Soulkey ![]() [ Show more ] BeSt ![]() ggaemo ![]() Rush ![]() hero ![]() Hyuk ![]() Barracks ![]() Mind ![]() Snow ![]() Nal_rA ![]() sorry ![]() Hyun ![]() [sc1f]eonzerg ![]() JYJ41 TY ![]() zelot ![]() Aegong ![]() Sacsri ![]() scan(afreeca) ![]() ![]() Terrorterran ![]() HiyA ![]() ajuk12(nOOB) ![]() IntoTheRainbow ![]() Counter-Strike Super Smash Bros Other Games gofns8271 FrodaN1120 hiko688 Mlord484 Beastyqt294 RotterdaM211 KnowMe181 Liquid`VortiX143 ArmadaUGS107 Trikslyr50 ZerO(Twitch)15 Organizations
StarCraft 2 • iHatsuTV StarCraft: Brood War![]() ![]() • AfreecaTV YouTube • intothetv ![]() • Kozan • IndyKCrew ![]() • LaughNgamezSOOP • Migwel ![]() • sooper7s Dota 2 League of Legends Counter-Strike |
Replay Cast
LiuLi Cup
BSL Team Wars
Team Hawk vs Team Dewalt
Korean StarCraft League
CranKy Ducklings
SC Evo League
WardiTV Summer Champion…
Classic vs Percival
Spirit vs NightMare
CSO Cup
[BSL 2025] Weekly
Sparkling Tuna Cup
[ Show More ] SC Evo League
BSL Team Wars
Team Bonyth vs Team Sziky
Afreeca Starleague
Queen vs HyuN
EffOrt vs Calm
Wardi Open
RotterdaM Event
Replay Cast
Afreeca Starleague
Rush vs TBD
Jaedong vs Mong
Afreeca Starleague
herO vs TBD
Royal vs Barracks
The PondCast
|
|