| delorie.com/archives/browse.cgi | search |
| From: | mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: It's a Bug? Please. |
| Date: | 24 Apr 1997 15:27:16 GMT |
| Organization: | Oxford University, England |
| Lines: | 23 |
| Message-ID: | <5jnu4k$9pp@news.ox.ac.uk> |
| References: | <Pine DOT LNX DOT 3 DOT 95 DOT 970424150338 DOT 25520C-100000 AT ideafix DOT cps DOT unizar DOT es> |
| NNTP-Posting-Host: | sable.ox.ac.uk |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Miguel Murillo (mmurillo AT ideafix DOT cps DOT unizar DOT es) wrote: : Error : ... : (a++)++; AFIAK you can only increment or decrement lvalues; `(a++)' is not an lvalue. : Fine : : (a++); : (a++); Here `a' is an lvalue, so it is incremented twice. If you want to write it in one line, try: a+=2; -- George Foot <mert0407 AT sable DOT ox DOT ac DOT uk> Merton College, Oxford
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |