Re: [algogeeks] addition using bitwise

2010-07-01 Thread anand verma
@Priyanka.can u plz explain what is wrong in SHRINIVAS' code?? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to alg

Re: [algogeeks] Call a function before main() in C

2010-06-30 Thread anand verma
i tried this c code on gcc compiler... this code doesn't give expected output. OUTPUT: i m inside main y? -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe

Re: [algogeeks] c code.....explaine output

2010-06-20 Thread anand verma
thanks -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group

Re: [algogeeks] max of 2 numbers

2010-06-20 Thread anand verma
max=x + ( ( x - y ) & ( ( x - y ) >> 31 )) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com.

Re: [algogeeks] max of 2 numbers

2010-06-19 Thread anand verma
min = q ^ ( (p^q) * (phttp://groups.google.com/group/algogeeks?hl=en.

Re: [algogeeks] max of 2 numbers

2010-06-19 Thread anand verma
int max(int a,int b) { int max; (a/b)&&(max=a)||(max=b); return max; } -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeek