yes,okay
>>what values for a,b,c,r after below instruction(r=b=c=0,a=-1)
r=++a||++b||++c
---
answer:
a=0,b=1,c=0,r=1
Do you know why c is zero?because in OR when b gets 1,compiler doesn't consider ++c
(I dont know what could happand to them in Borland)
Cheers.
--------------------------------------------
Mehdi.:)
|