Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!phil From: phil@ux1.cso.uiuc.edu Newsgroups: comp.lang.c Subject: do ++ and -- yield lvalues? Message-ID: <6200026@ux1.cso.uiuc.edu> Date: 3 Feb 90 01:39:42 GMT Lines: 20 Nf-ID: #N:ux1.cso.uiuc.edu:6200026:000:372 Nf-From: ux1.cso.uiuc.edu!phil Feb 2 19:06:00 1990 Does a postincrement or postdecrement operator yield an lvalue? In other words, is the following valid? int n,a,b; (n++) = a + b; I suspect the following is not, as (a+b) is not an lvalue: int n,a,b; n = ++( a + b ); and the first example would be equivalent to: int n,a,b; n = ( a + b ) + 1; --Phil Howard, KA9WGN--