Re: Had an interview



In article <481DF1B6.56D5FBDD@xxxxxxxxx>, CBFalconer says...
Robert Adsett wrote:

... snip ...

However, the fact that no one considered that the inputs could be
out of range (and for that matter your reaction to the observation)
is an interesting commentary on how we view this practice we call
programming. We seem to default to the assumption that the input
values to our current problem will be in the range we expect.

So you didn't bother reading my reply?

I had to check back to make sure I had, my apologies for forgetting it.
Your solution does at least limit the range of outputs. It does leave
open the question of whether values other than 1 or 2 are acceptable
inputs.

At least someone is considering other inputs may occur.

Robert
** Posted from http://www.teranews.com **
.



Relevant Pages

  • Re: node again..
    ... CBFalconer wrote: ... snip ... ... The two sequences are equivalent and which to use is a matter of style. ...
    (comp.lang.c)
  • Re: Float comparison
    ... snip ... ... trying to get an exact definition of them. ... speaking of the usual fp-system which normalizes everything in ... Chuck F (cbfalconer at maineline dot net) ...
    (comp.lang.c)
  • Re: How do I convert an int to binary form?
    ... pete wrote: ... snip ... ... The first time that our friend CBFalconer ... I can't recall any words from that thread to google on though. ...
    (comp.lang.c)
  • Re: Float comparison
    ... snip ... ... If an int object i contains the value 42, ... If a double object x contains the value 42.0, it doesn't matter ... and your double object can be representing anything fom ...
    (comp.lang.c)
  • Re: c++ calling c functions
    ... CBFalconer writes: ... snip ... ... the headers. ... You can't invert this and generate normal C++ ...
    (comp.lang.c)