in DS edited by
692 views
0 votes
0 votes

We are given a C function, mystery() as follows.
 

void mystery(int m, int n)

{
    while(m<=n)
    {
        m++;
        n--;
    }
}

Let X be the number of times the comparission inside the while loop ( i.e., m<=n ) is performed, when mystery(127,255) is called.

Then the value of X is _______________

in DS edited by
by
692 views

4 Comments

UDP socket doesn't require Source IP and Source Port ?
0
0
Is this from Grand test?

In the official site I took cn 1 and 2 on flow and error control and network layer..

This question seems like it's from transport layer or Grand test..I didn't take any of the 2 :(
0
0
it is from Transport layer !
0
0

1 Answer

0 votes
0 votes
192-127+1= 66 comparisons

Related questions