[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: i = i++

On Thu, 11 Jan 2001, sindhoor pangal wrote:

> btw. i asked this question coz we were asked a
> question like i = i+++++i+i++ ; in some apptitude test
> and the people who evaluated claimed that the answer
> 'undefined' was wrong! beat that!
	I think this will not compile at all. 
a+++++b is an invalid C statement because it will be interpreted as
((a++)++) +b. whereas a+++ ++b is (a++) + (++b). Parsing problem :(

PS: For details see the C-FAQ. I don't have the link however.


#!!!	If anything can go wrong, _FIX_ it. (To hell with MURPHY)
						Ajay kumar Dwivedi