Xref: utzoo comp.lang.c:38045 comp.std.c:4631 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!hp4nl!alchemy!hnridder From: hnridder@cs.ruu.nl (Ernst de Ridder) Newsgroups: comp.lang.c,comp.std.c Subject: difference between c++; and ++c; Summary: Why write ++c; instead of c++ Keywords: pre post increment decrement grammar style Message-ID: <1991Apr08.161444.10025@cs.ruu.nl> Date: 8 Apr 91 16:14:44 GMT Organization: Utrecht University, Dept. of Computer Science Lines: 20 I once read (I'm not sure where, but I believe it was in the C++ programming language) that some C-programmers argue that ++c is neater than c++. (In situations where the side-effect doesn't matter). So they write (just as an illustration) while ( c < 100) ++c; instead of while ( c < 100) c++; Why should one of these forms be preferred over the other in such a situation, apart from personal preferences? Ernst de Ridder -- Qualitas qualitatem inducit. Semper ego qualitatem. popa iret