Re: switch: break or return 0.
From: André Pönitz (poenitz_at_gmx.net)
Date: 01/16/04
- Next message: Joec: "Re: Difficult question."
- Previous message: Martijn Lievaart: "Re: switch: break or return 0."
- In reply to: Legion: "Re: switch: break or return 0."
- Next in thread: Irrwahn Grausewitz: "Re: switch: break or return 0."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 16 Jan 2004 10:24:18 +0000 (UTC)
Legion <Legion@peoplepc.com> wrote:
> Mabey this explanation might work...
>
> break could mean "switch, you are done now", while return 0 could mean
> "switch, you will present a zero to whomever just asked you for a value this
> time".
>
> Any errors in the above statement anyone?
Sure. 'return' leaves the function, not just a single switch or loop.
Andre'
PS:
> | "thides" <swatts@globalserve.net> wrote:
> |
> | Please don't top-post.
- Next message: Joec: "Re: Difficult question."
- Previous message: Martijn Lievaart: "Re: switch: break or return 0."
- In reply to: Legion: "Re: switch: break or return 0."
- Next in thread: Irrwahn Grausewitz: "Re: switch: break or return 0."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|