Yeah, the events are independent .. But the statements (if/then) are not independent !! The second else executes when the first if fails.
Utkarsh Srivastava , Final Year, Under Grad Student B.Tech, Computer Science & Engineering Indian Institute of Technology, Guwahati,India On Tue, Dec 21, 2010 at 11:07 AM, Naveen Kumar <naveenkumarve...@gmail.com> wrote: > I second Ashish, > > These two events are independent > > On Tue, Dec 21, 2010 at 10:57 AM, Ashish Goel <ashg...@gmail.com> wrote: >> >> you can't find... >> are these mutually exclusive or independent? think twice, draw venn diag >> there would be cases when A<B as well as C<D, in such cases foo2 will NOT >> be called >> >> >> Best Regards >> Ashish Goel >> "Think positive and find fuel in failure" >> +919985813081 >> +919966006652 >> >> >> On Wed, Dec 15, 2010 at 12:36 AM, bittu <shashank7andr...@gmail.com> >> wrote: >>> >>> void foo1() >>> { >>> if(A<B) >>> Then {_/*.... */} >>> else >>> if(C<D) >>> then foo2() >>> } >>> >>> How many time foo2() would get called given >>> A<B 25% of the times and C<D 75% of the times and foo1() is called >>> 5000 times >>> >>> although i had diff...solution..but i wants to confirm wid others..so >>> hav a look >>> >>> Regards >>> Shashank Mani >>> BIT Mesra >>> >>> -- >>> 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 at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> -- >> 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 at >> http://groups.google.com/group/algogeeks?hl=en. > > > > -- > Cheers > Naveen Kumar > > -- > 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 at > http://groups.google.com/group/algogeeks?hl=en. > -- 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 at http://groups.google.com/group/algogeeks?hl=en.