Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #9535

Re: Am I not confident enuff to do this?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: Am I not confident enuff to do this?
Date Wed, 31 Aug 2011 16:00:06 +1200
Lines 34
Message-ID <9c5pu6F5dgU6@mid.individual.net> (permalink)
References <rchq57132mpjq7hc75ccb5ivcfin294vl5@4ax.com> <Xns9F51F274DC701myfirstnameosapriee@216.196.109.131> <gibr57h6bgu8v9b254posmu39od3hce49f@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net I775ZOa6elAsBaCBMh4ofQCFHSWQRZzRvBBambHjiZzXWTkUQT
Cancel-Lock sha1:1w+iXt662CSf7fqXadgcKE69QSA=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <gibr57h6bgu8v9b254posmu39od3hce49f@4ax.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:9535

Show key headers only | View raw


On 08/31/11 03:50 PM, Heck wrote:
> On Tue, 30 Aug 2011 15:50:03 -0500, Paavo Helde
> <myfirstname@osa.pri.ee>  wrote:
>
>> Heck<heckja_in@ordertostymieharvestersverizon.net>  wrote in
>> news:rchq57132mpjq7hc75ccb5ivcfin294vl5@4ax.com:
>>
>>> I was given a programming question on a tech test that made me doubt
>>> myself.  It seemed too simple.  Did I miss something?  This is the
>>> text of the question exactly as I got it:
>>>
>>> Without defining any new variable or passing an argument to function,
>>> I want you to be able to increment a number every time this method is
>>> called. (Chose a language of your choice and write a fully compilable
>>> method)
>>
>> #include<errno.h>
>> void f() {
>>     	++errno;
>> }
>>
>> I believe this fully qualifies :-)
>
> Thank you very much, I believe it does.  I like that yours is a
> slightly impertinent answer, and, your answer answers my more personal
> question concerning my confidence and lack thereof.  I was too
> intimidated.  I raise my glass to the wise-ass.

Given the loose wording, how about

int f() { return 1+1; }

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Am I not confident enuff to do this? Heck <heckja_in@ordertostymieharvestersverizon.net> - 2011-08-30 16:31 -0400
  Re: Am I not confident enuff to do this? Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-30 15:50 -0500
    Re: Am I not confident enuff to do this? Heck <heckja_in@ordertostymieharvestersverizon.net> - 2011-08-30 23:50 -0400
      Re: Am I not confident enuff to do this? Ian Collins <ian-news@hotmail.com> - 2011-08-31 16:00 +1200
        Re: Am I not confident enuff to do this? "Waldek M." <wm@localhost.localdomain> - 2011-08-31 18:43 +0200
    Re: Am I not confident enuff to do this? Juha Nieminen <nospam@thanks.invalid> - 2011-08-31 06:24 +0000
  Re: Am I not confident enuff to do this? hanukas <jukka@liimatta.org> - 2011-08-31 01:13 -0700
    Re: Am I not confident enuff to do this? Edek <edek.pienkowski@gmail.com> - 2011-08-31 22:55 +0200
  Re: Am I not confident enuff to do this? Krice <paulkp@mbnet.fi> - 2011-09-01 00:00 -0700
    Re: Am I not confident enuff to do this? "hugo_ribeira@hotmail.com" <hugo_ribeira@hotmail.com> - 2011-09-01 03:27 -0700
  Re: Am I not confident enuff to do this? James Kanze <james.kanze@gmail.com> - 2011-09-01 15:56 -0700
    Re: Am I not confident enuff to do this? red floyd <no.spam.here@its.invalid> - 2011-09-01 17:01 -0700
      Re: Am I not confident enuff to do this? Joe Greer <jgreer@doubletake.com> - 2011-09-02 15:34 +0000
        Re: Am I not confident enuff to do this? Paavo Helde <myfirstname@osa.pri.ee> - 2011-09-02 10:47 -0500
  Re: Am I not confident enuff to do this? Daniel Bradley <daniel@bradley.mx> - 2011-09-07 14:58 +0000
  Re: Am I not confident enuff to do this? "Thomas J. Gritzan" <phygon_antispam@gmx.de> - 2011-09-12 03:31 +0200

csiph-web