#include<iostream.h>
int rec(int i)
{
static int d=1;
if(i>=5)
return i;
d=d+i;
i=i+i;
rec(d);
}
int main()
{
cout<<rec(1);
return 0;
}

various compilers give diffrent result... why so???
n how d value is calculated by differnt compilers.. whhat is d correct
output n which compiler to trust??

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to