delorie.com/archives/browse.cgi | search |
Date: | Fri, 25 Apr 1997 14:49:33 +0200 (MET DST) |
From: | Miguel Murillo <mmurillo AT ideafix DOT cps DOT unizar DOT es> |
To: | djgpp AT delorie DOT com |
Subject: | Thanx for Re: It's a Bug? and Pug? |
In-Reply-To: | <5jnuq1$fle@vidar.diku.dk> |
Message-ID: | <Pine.LNX.3.95.970425144758.3234C-100000@ideafix.cps.unizar.es> |
MIME-Version: | 1.0 |
Thanks : Morten,Joseph B., Brent, George and Salvador Sorry previus e-mail erroreus: But It's bizarre: #include <stdio.h> #include <stdlib.h> #include <stdio.h> #include <stdlib.h> int main() { int a,b; a=0; (++a)++; printf("\nEl valor de a =%d",a); } OK!!!.. 2 But ++(a++); BAD !!!... 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 |