View Single Post
  #12 (permalink)  
Old August 7th, 2004, 04:04 PM
mehdi62b mehdi62b is offline
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.:)
Reply With Quote