Consider the following C-function in which a[n] and b[m] are two
sorted integer arrays and c[n+m] be an other integer array.


void XYZ(int a[],int b[], int c[])
{
int i,j,k;
i=j=k=0;
while((i<n)&&(j<m))
{
if (a[i]<b[j])
  c[k++]=a[i++];
 else
  c[k++]=b[j++];

}

Which of the following condition(s) hold(s) after the termination of
the while loop?

i)j<m, k=n+j-1, and a[n-1]<b[j] if i=n

ii)i<n,k=m+i-1, and b[m-`1]<=a[i] if j=m


A)only i
B)only ii
C)either i or ii but not both
D)neither i nor ii


Plz Explain me......in detail

Vijay.........

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@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.

Reply via email to