Re: [algogeeks] Re: explain the output please.....

2011-10-07 Thread Raghav Garg
*yeah..i was wrong as i didn't notice (-) sign .. *Thanking you *With regards- Raghav garg Contact no. 9013201944 www.facebook.com/rock.raghavag B. tech (IT), 5th sem University School Of Information Technology Guru Govind Singh Indraprastha University Delhi* On Sat, Oct 8, 2011 at 8:42 AM, ra

Re: [algogeeks] Re: explain the output please.....

2011-10-07 Thread rahul sharma
o/p : fail 1 between c and u they will be in range so stored as it is but i is -16 converted to 2 complement n become -32 thats y On Sat, Oct 8, 2011 at 2:02 AM, Rahul Tiwari wrote: > o/p - fail1 >pass2 > > xplaination - as char range = (-127 to +127) so char c=-64 is ok > so (c>i) cond

[algogeeks] Re: explain the output please.....

2011-10-07 Thread Rahul Tiwari
o/p - fail1 pass2 xplaination - as char range = (-127 to +127) so char c=-64 is ok so (c>i) condition z not true ..so else part got executed . but u is unsigned so its actual value z , u = some very high + no. so i wrote: > i have run the program in turbo c and getting same o/p as