how can I return nothing?
- From: xicloid@xxxxxxxxx
- Date: Wed, 19 Sep 2007 17:06:21 -0000
I'm making a function that checks the input integer and returns the
value if it is a prime number.
If the integer is not a prime number, then the function should return
nothing.
Problem is, I don't know how to do that.
Isn't there anything like "return null"in C?
.
- Follow-Ups:
- Re: how can I return nothing?
- From: Gordon Burditt
- Re: how can I return nothing?
- From: Don
- Re: how can I return nothing?
- From: Ralf Damaschke
- Re: how can I return nothing?
- From: 7atim.Ld@xxxxxxxxx
- Re: how can I return nothing?
- From: Malcolm McLean
- Re: how can I return nothing?
- From: Ben Pfaff
- Re: how can I return nothing?
- From: Army1987
- Re: how can I return nothing?
- From: user923005
- Re: how can I return nothing?
- From: Walter Roberson
- Re: how can I return nothing?
- From: Dale Ess
- Re: how can I return nothing?
- From: Fred Kleinschmidt
- Re: how can I return nothing?
- From: C. Benson Manica
- Re: how can I return nothing?
- From: Eric Sosman
- Re: how can I return nothing?
- From: Richard Tobin
- Re: how can I return nothing?
- Prev by Date: Re: x == 0 && (x & -1) != 0 for negative zero?
- Next by Date: Re: Anyone have any ideas on this one..... (OT)
- Previous by thread: problem with removing spaces in the string
- Next by thread: Re: how can I return nothing?
- Index(es):