| delorie.com/archives/browse.cgi | search |
| Date: | Fri, 25 Apr 1997 13:07:56 +0200 (MET DST) |
| From: | Miguel Murillo <mmurillo AT ideafix DOT cps DOT unizar DOT es> |
| To: | djgpp AT delorie DOT com |
| Subject: | Re: It's a Bug? Please. |
| In-Reply-To: | <5jnuq1$fle@vidar.diku.dk> |
| Message-ID: | <Pine.LNX.3.95.970425125938.3234A-100000@ideafix.cps.unizar.es> |
| MIME-Version: | 1.0 |
Thanks :
Morten,Joseph B., Brent, George and Salvador
Sorry e-mail-error:
But It's bizarre:
#include <stdio.h>
#include <stdlib.h>
int main()
{ int a,b;
a=0;
(++a)++;
printf("\nEl valor de a =%d",a);
}
===> a=2
Answer:
> This is undefined in C. Don't even try to do more than one
> modification to the same memory location within one expression.
>
Yes, It's is true.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |