TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Infinite loop in C

2 pointsby furconitalmost 12 years ago

2 comments

drivers99almost 12 years ago
Huh? Overflow in C doesn't cause a run-time error. Overflow of a signed integer is technically undefined but whatever the result is, it should just keep running.
laveuralmost 12 years ago
There are so many things wrong with that code its not even funny...<p>First off counter is of type static int. not unsigned int like the article says. Secondly j is decremented, j isn&#x27;t even defined.<p>They are however right that it most likely will crash due to an overflow problem. Though this is not necessarily true.
评论 #5874487 未加载