Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #164080
| From | Meredith Montgomery <mmontgomery@levado.to> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Irreproducible results |
| Date | 2021-12-25 21:57 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <865yrc18ub.fsf@levado.to> (permalink) |
| References | <86tuf13fvc.fsf@levado.to> <sq0gdk$lnu$1@dont-email.me> <sq1r2g$27hcq$1@news.xmission.com> |
gazelle@shell.xmission.com (Kenny McCormack) writes:
> In article <sq0gdk$lnu$1@dont-email.me>,
> Andrey Tarasevich <andreytarasevich@hotmail.com> wrote:
> ...
>>Yes, it should be.
>>
>>The first result you quoted makes no sense. The only possible
>>explanation is that you are most certainly making something up.
>
> Someday, someone is going to post the following C program:
>
> int main(void) { printf("2+2 = %d\n",2+2); }
>
> and state that the output he gets from compiling and running this program is:
>
> 2+2 = 5
>
> And then we are all going to spend much time and many responses trying both to
> figure out how he got that result -- and explaining to him that that result is
> impossible and must be due to a cut-and-paste error.
Yes. But this is what happens to the novice. If the person has very
little experience with arithmetic --- if that were possible ---,
something literally as you describe could happen. If I had a clue about
what I was looking at, I would have realized that I must have been
confused --- and would be much more careful in posting something like
that. But, yes, I wouldn't blame you for getting annoyed, say.
Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread
isn't an array a contiguous region of memory? Meredith Montgomery <mmontgomery@levado.to> - 2021-12-21 16:41 -0300
Re: isn't an array a contiguous region of memory? scott@slp53.sl.home (Scott Lurndal) - 2021-12-21 20:10 +0000
Re: isn't an array a contiguous region of memory? scott@slp53.sl.home (Scott Lurndal) - 2021-12-21 20:13 +0000
Re: isn't an array a contiguous region of memory? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2021-12-21 20:19 +0000
Re: isn't an array a contiguous region of memory? Meredith Montgomery <mmontgomery@levado.to> - 2021-12-21 21:43 -0300
Re: isn't an array a contiguous region of memory? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-12-21 12:22 -0800
Re: isn't an array a contiguous region of memory? Meredith Montgomery <mmontgomery@levado.to> - 2021-12-21 21:48 -0300
Re: isn't an array a contiguous region of memory? Andrey Tarasevich <andreytarasevich@hotmail.com> - 2021-12-22 16:38 -0800
Irreproducible results (Was: isn't an array a contiguous region of memory?) gazelle@shell.xmission.com (Kenny McCormack) - 2021-12-23 12:46 +0000
Re: Irreproducible results Meredith Montgomery <mmontgomery@levado.to> - 2021-12-25 21:57 -0300
csiph-web