I am having trouble with this function Please help the following questions...
Show (a) the exact number of operations and (b) the Big-O estimate of the following
void func(unsigned long n) // n is a large, positive number
{
int x=1, y=x--, z=--y+x;
for(; z<n; ++x, ++y)
{
if(x>n)
z=n;
if(x>=y && (x || !z)) // Watch out for short
// circuit evaluation here.
y++;
}
}