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


Groups > comp.lang.c > #7594

Re: what is the output?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!.POSTED!not-for-mail
From Willem <willem@turtle.stack.nl>
Newsgroups comp.lang.c
Subject Re: what is the output?
Date Mon, 4 Jul 2011 15:11:44 +0000 (UTC)
Organization Stack Usenet News Service
Lines 38
Message-ID <slrnj13m1g.23ql.willem@turtle.stack.nl> (permalink)
References <080abbae-9aea-4c3e-a504-9ac1b3e01af1@glegroupsg2000goo.googlegroups.com> <1b1uy7i0v1.fsf@snowball.wb.pfeifferfamily.net> <fd8edf90-9baa-4b0a-a8ef-30b05fe0004c@g12g2000yqd.googlegroups.com>
NNTP-Posting-Host turtle.stack.nl
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Trace mud.stack.nl 1309792304 78541 2001:610:1108:5010::132 (4 Jul 2011 15:11:44 GMT)
X-Complaints-To abuse@stack.nl
NNTP-Posting-Date Mon, 4 Jul 2011 15:11:44 +0000 (UTC)
User-Agent slrn/0.9.9p1 (FreeBSD)
Xref x330-a1.tempe.blueboxinc.net comp.lang.c:7594

Show key headers only | View raw


Hans Vlems wrote:
) On 3 jul, 22:08, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
)> vinay kumar <vinay...@gmail.com> writes:
)> > main()
)> > {
)> > int d=010;
)> > printf("%d",d);
)> > }
)>
)> I don't want to be too rude, but you could compile and run it and find
)> the output for yourself much faster than you can expect an answer here.
)
) My guess is that the OP did do that. And it failed to compile because
) printf
) wasn't defined.
Why do you guess that? My guess is that it never even came near a compiler.

If the OP had managed to find the answer to that in
) his textbook then the
) question would never have arrived here.

True, but if the OP had actually opened his textbook he would have had a
much better chance at finding the answer.

) I seriously doubt the OP is interested in niceties as main() vs.
) main(void) or int main(void).

That is just a stick to hit people with when they post homework questions.

HTH HAND

SaSW, Willem
-- 
Disclaimer: I am in no way responsible for any of the statements
            made in the above text. For all I know I might be
            drugged or something..
            No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT

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


Thread

what is the output? vinay kumar <vinay5b9@gmail.com> - 2011-07-03 09:34 -0700
  Re: what is the output? "osmium" <r124c4u102@comcast.net> - 2011-07-03 11:57 -0500
  Re: what is the output? Vincenzo Mercuri <vincenzo.mercuri@yahoo.it> - 2011-07-03 19:05 +0200
    Re: what is the output? Vincenzo Mercuri <vincenzo.mercuri@yahoo.it> - 2011-07-03 19:18 +0200
      Re: what is the output? Vincenzo Mercuri <vincenzo.mercuri@yahoo.it> - 2011-07-03 19:22 +0200
  Re: what is the output? Geoff <geoff@invalid.invalid> - 2011-07-03 12:31 -0700
  Re: what is the output? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-07-03 14:08 -0600
    Re: what is the output? Hans Vlems <hvlems@freenet.de> - 2011-07-03 23:33 -0700
      Re: what is the output? Dr Nick <3-nospam@temporary-address.org.uk> - 2011-07-04 08:17 +0100
        Re: what is the output? Keith Thompson <kst-u@mib.org> - 2011-07-04 14:33 -0700
          Re: what is the output? James Kuyper <jameskuyper@verizon.net> - 2011-07-04 19:14 -0400
            Re: what is the output? Chad <cdalten@gmail.com> - 2011-07-05 10:59 -0700
              Re: what is the output? Keith Thompson <kst-u@mib.org> - 2011-07-05 11:18 -0700
              Re: what is the output? Todd Carnes <toddcarnes@gmail.com> - 2011-07-05 18:23 +0000
            Re: what is the output? James Kuyper <jameskuyper@verizon.net> - 2011-07-05 23:00 -0400
      Re: what is the output? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-07-04 07:25 -0600
      Re: what is the output? Willem <willem@turtle.stack.nl> - 2011-07-04 15:11 +0000
        Re: what is the output? Phil Carmody <thefatphil_demunged@yahoo.co.uk> - 2011-07-07 17:33 +0300

csiph-web