Re: [algogeeks] Logical operator question

2011-07-29 Thread Vijay Khandar
Thanks, but also one small doubt If x=y=z=-4 then plz tell me o/p of pf(++x++y||++z) and pf(x,y,z) these two statements. On Fri, Jul 29, 2011 at 10:52 AM, jagrati verma jagrativermamn...@gmail.com wrote: vijay x=y=z=-1 so for ++x++y||++z ++x=0 so 1st condition will get false so

Re: [algogeeks] Logical operator question

2011-07-29 Thread Prem Krishna Chettri
1 and -3 -3 -4.. Verify the Compilation.. Regards Prem On Fri, Jul 29, 2011 at 12:35 PM, Vijay Khandar vijaykhand...@gmail.comwrote: Thanks, but also one small doubt If x=y=z=-4 then plz tell me o/p of pf(++x++y||++z) and pf(x,y,z) these two statements. On Fri, Jul

Re: [algogeeks] Logical operator question

2011-07-29 Thread Vijay Khandar
Yes , so can u explai me plz, i m little bit confusing..Vijay On Fri, Jul 29, 2011 at 12:39 PM, Prem Krishna Chettri hprem...@gmail.comwrote: 1 and -3 -3 -4.. Verify the Compilation.. Regards Prem On Fri, Jul 29, 2011 at 12:35 PM, Vijay Khandar

Re: [algogeeks] Logical operator question

2011-07-29 Thread Vijay Khandar
Thanks Prem got it now... On Fri, Jul 29, 2011 at 12:44 PM, Vijay Khandar vijaykhand...@gmail.comwrote: Yes , so can u explai me plz, i m little bit confusing..Vijay On Fri, Jul 29, 2011 at 12:39 PM, Prem Krishna Chettri hprem...@gmail.com wrote: 1 and -3 -3

Re: [algogeeks] Logical operator question

2011-07-29 Thread Prem Krishna Chettri
Short and Easy.. Operation Check both side (if not Zero) B4 verifying the result || operation Check only either side.Depends on the precedence on which it applies. Now Work it Out. On Fri, Jul 29, 2011 at 12:44 PM, Vijay Khandar vijaykhand...@gmail.comwrote: Yes , so can u explai me plz, i

Re: [algogeeks] Logical operator question

2011-07-29 Thread Vijay Khandar
Thanks. On Fri, Jul 29, 2011 at 12:46 PM, Prem Krishna Chettri hprem...@gmail.comwrote: Short and Easy.. Operation Check both side (if not Zero) B4 verifying the result || operation Check only either side.Depends on the precedence on which it applies. Now Work it Out. On Fri,

Re: [algogeeks] Logical operator question

2011-07-28 Thread sagar pareek
+1 @ankur :) On Wed, Jul 27, 2011 at 11:23 PM, Ankur Khurana ankur.kkhur...@gmail.comwrote: one request : dont use trubo C On Wed, Jul 27, 2011 at 10:23 PM, Vijay Khandar vijaykhand...@gmail.comwrote: I m getting o/p 1 2 1 1 1 2 2 1 but on wards when x=y=z= -1 then i m getting

Re: [algogeeks] Logical operator question

2011-07-28 Thread Prem Krishna Chettri
Can SomeOne verify the Compilation as .. 1 211 1 221 1 222 0 0-10 0 00-1 0 0-1-1 Thx.. On Thu, Jul 28, 2011 at 11:47 AM, sagar pareek sagarpar...@gmail.comwrote: +1 @ankur :) On Wed, Jul 27, 2011 at 11:23 PM, Ankur Khurana ankur.kkhur...@gmail.comwrote: one request : dont use trubo C

Re: [algogeeks] Logical operator question

2011-07-28 Thread kavitha nk
@prem::ya its rite.. //BE COOL// kavi -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com.

Re: [algogeeks] Logical operator question

2011-07-28 Thread Prem Krishna Chettri
Thx Kavi.. :) On Thu, Jul 28, 2011 at 2:59 PM, kavitha nk kavithan...@gmail.com wrote: @prem::ya its rite.. //BE COOL// kavi -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

Re: [algogeeks] Logical operator question

2011-07-28 Thread Vijay Khandar
Plz explain me how it comes 2 2 2 as 6th printf.. On Thu, Jul 28, 2011 at 11:55 AM, Prem Krishna Chettri hprem...@gmail.comwrote: Can SomeOne verify the Compilation as .. 1 211 1 221 1 222 0 0-10 0 00-1 0 0-1-1 Thx.. On Thu, Jul 28, 2011 at 11:47 AM, sagar pareek

Re: [algogeeks] Logical operator question

2011-07-28 Thread Vijay Khandar
I m getting 0 0 -1 as 8th printf though u r getting 0 -1 0 plz explain me 8th printf statement as ++x++y||++z how it works On Thu, Jul 28, 2011 at 11:55 AM, Prem Krishna Chettri hprem...@gmail.comwrote: Can SomeOne verify the Compilation as .. 1 211 1 221 1 222 0 0-10 0 00-1

Re: [algogeeks] Logical operator question

2011-07-28 Thread jagrati verma
vijay x=y=z=-1 so for ++x++y||++z ++x=0 so 1st condition will get false so no increment on y's value(=-1) so ++x++y=0 and ++z=0 -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to

[algogeeks] Logical operator question

2011-07-27 Thread Vijay Khandar
#includestdio.h #includeconio.h void main() { clrscr(); int x,y,z; x=y=z=1; printf(\n %d,++x||++y++z); printf(\n %d %d %d ,x,y,z); x=y=z=1; printf(\n %d,++x++y||++z); printf(\n %d %d %d,x,y,z); x=y=z=1; printf(\n %d,++x++y++z); printf(\n %d %d %d,x,y,z); x=y=z=-1; printf(\n %d,++x++y||++z);

Re: [algogeeks] Logical operator question

2011-07-27 Thread Jnana Sagar
what do u mean by o/p..actually what r u asking for..sorry to ask so..i couldn't get u.. On 7/27/11, Vijay Khandar vijaykhand...@gmail.com wrote: #includestdio.h #includeconio.h void main() { clrscr(); int x,y,z; x=y=z=1; printf(\n %d,++x||++y++z); printf(\n %d %d %d ,x,y,z); x=y=z=1;

Re: [algogeeks] Logical operator question

2011-07-27 Thread Vijay Khandar
I m getting o/p 1 2 1 1 1 2 2 1 but on wards when x=y=z= -1 then i m getting something different o/p. On Wed, Jul 27, 2011 at 10:18 PM, Jnana Sagar supremeofki...@gmail.comwrote: what do u mean by o/p..actually what r u asking for..sorry to ask so..i couldn't get u.. On 7/27/11, Vijay