Soggy
Contributor
cancun mark:..... there was this one time at computer camp!
.
As someone who attended band camp numerous times, I'm offended
Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.
Benefits of registering include
cancun mark:..... there was this one time at computer camp!
.
pete340:There is no default return (except from main). The behavior of that code is undefined for any value of item that doesn't match one of the case labels. (And we won't say anything about the missing curly brackets for the switch statement)
Reinoud:Hey, this is the DIR forum! You mean to say:
If you use this code you are going to die!
pete340:Please point to the words in the C or C++ Standard that say that functions other htan main have implicit return values.
MikeFerrara:I never did punch cards. I'm old enough but I wasn't working with computers then. I did start before the 8086 though.
You're making me feel like an ancient geezer, sitting in my rocker on the porch and shouting at the neighbor kids to stay off my lawn. I remember when this guy from this new startup called Intel showed our Tau Beta Pi group how this clock chip they had called a 4040 could be hacked to act like a CPU. They had little kits you could build - I/O was a paper tape, the deluxe kit had an 4 digit LED readout. Ah, the old days.MikeFerrara:I never did punch cards. I'm old enough but I wasn't working with computers then. I did start before the 8086 though.
We had processor boards with an 8085 (I think) and a key pay.
We would write an assebly language program, disassemble it (by hand of course) and type the hex machine code directly into memory by way of the key pad.
pete340:Please point to the words in the C or C++ Standard that say that functions other htan main have implicit return values.
hey computer geeks!! Stop hijacking the damned thread!! i thought this was diving forum!!Spectre:I could go on about the strokes that use less than optimal operating systems and don't think twice about having to reboot a system to compensate for a lack of quality in the OS, while touching into the complete baffoonery of an OS that allows for non-privledged applications to actually generate a fault that results in the system to crash.
But I don't feel like it
Yea... I know it's not defined. The architectures I work on cover the issue in the calling standard of the OS so the register is clear when you fall into the RET. Of course once you take the relaxed-ansi flag off the compiler, and upgrade to a later version the code won't even compile anymore... but of course; that's what happens when corners get cut for a dozen years and then you try and clean the code up.
BCS:hey computer geeks!! Stop hijacking the damned thread!! i thought this was diving forum!!
BCS:hey computer geeks!! Stop hijacking the damned thread!! i thought this was diving forum!!