linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* invalid lvalue
@ 2003-02-15 15:27 Mohammed Khalid Ansari
  2003-02-15 15:40 ` Jan-Benedict Glaw
  0 siblings, 1 reply; 2+ messages in thread
From: Mohammed Khalid Ansari @ 2003-02-15 15:27 UTC (permalink / raw)
  To: linux c programming mailing list


I tried to compile the following program...

int main()
{
	int a;
	
	a = 2;
#	printf ("%d\n", a++++);
	
	return 0;
}

but it gave the following error.

"invalid lvalue in increment" for the line indicated by #. Why it so, a 
has been defined as an int variable!

-- 

**************************************************************************

Mohammed Khalid Ansari                    Tel (res) : 0091-022-3051360
Assistant Manager II                          (off) : 0091-022-2024641
National Centre for Software Technology   Fax       : 0091-022-2049573 
8th flr,Air India Build. Nariman Point,   E-Mail    : khalid@ncst.ernet.in 	
Mumbai 400021.

Homepage : http://soochak.ncst.ernet.in/~khalid			  	  

**************************************************************************


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-15 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-15 15:27 invalid lvalue Mohammed Khalid Ansari
2003-02-15 15:40 ` Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).