Re: [algogeeks] output please

2011-07-25 Thread Arshad Alam
yes I understand, thanks to both of you On Sun, Jul 24, 2011 at 10:10 PM, rajeev bharshetty rajeevr...@gmail.comwrote: value 200 exceeds the char range so -56 , to print 200 try unsigned char . On Sun, Jul 24, 2011 at 10:06 PM, Prashant Gupta prashantatn...@gmail.com wrote: -56 On Sun,

Re: [algogeeks] output please

2011-07-25 Thread kavitha nk
it is printed in %d format nd not as %ch... -- //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] output please

2011-07-24 Thread Arshad Alam
#includestdio.h #includeconio.h void main() { char ch=200; printf(\n%d,ch); getch(); } -- 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,

Re: [algogeeks] output please

2011-07-24 Thread Prashant Gupta
-56 On Sun, Jul 24, 2011 at 8:15 PM, Arshad Alam alam3...@gmail.com wrote: #includestdio.h #includeconio.h void main() { char ch=200; printf(\n%d,ch); getch(); } -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post

Re: [algogeeks] output please

2011-07-24 Thread rajeev bharshetty
value 200 exceeds the char range so -56 , to print 200 try unsigned char . On Sun, Jul 24, 2011 at 10:06 PM, Prashant Gupta prashantatn...@gmail.comwrote: -56 On Sun, Jul 24, 2011 at 8:15 PM, Arshad Alam alam3...@gmail.com wrote: #includestdio.h #includeconio.h void main() { char

[algogeeks] Output please..

2011-06-18 Thread Balaji S
main() { int i=5; printf(%d,fun(fun(fun(fun( fun(i)); } void fun (int i) { if(i%2) return (i+(7*4)-(5/2)+(2*2)); else return (i+(17/5)-(34/15)+(5/2)); } -- With Regards, Balaji.S -- You received this message because you are subscribed to the Google Groups Algorithm Geeks

Re: [algogeeks] Output please..

2011-06-18 Thread Harshal
compiler error?? if the void is replaced by int, ans=155. On Sat, Jun 18, 2011 at 11:33 AM, Balaji S balaji.ceg...@gmail.com wrote: main() { int i=5; printf(%d,fun(fun(fun(fun( fun(i)); } void fun (int i) { if(i%2) return (i+(7*4)-(5/2)+(2*2)); else return

Re: [algogeeks] Output please..

2011-06-18 Thread Vishal Thanki
btw, i didn't understand the reason/motive behind this question? was it some kind of test?? On Sat, Jun 18, 2011 at 11:45 AM, Harshal hc4...@gmail.com wrote: compiler error?? if the void is replaced by int, ans=155. On Sat, Jun 18, 2011 at 11:33 AM, Balaji S balaji.ceg...@gmail.com wrote: