Re: String Comparision



On 30 Apr 2007 00:58:55 -0700, Aditya <adityagupta.18@xxxxxxxxx>
wrote:


snip code which has been analyzed to death with the two major errors
identified repeatedly.

HI
I tried this code, it works fine!!, no idea what error u are getting..
and even the concept seems to be ok
Aditya

How many times is the for loop in function comp executed? Is it more
than 6 (the number of characters in each string being compared)? What
are the values of s and t (or what do they point to) on the 7th
iteration of the loop (hint: on the sixth iteration each points to a
'\0')? Do you know what the technical term for this condition is
called (hint: look up undefined behavior)?


Remove del for email
.



Relevant Pages

  • Re: making bytes out of bits
    ... snip code that reads a file and produces the following output ... In each first iteration of the inner loop, ... One critical thing I don't understand is how to reshape arrays in C. ...
    (comp.lang.c)
  • Re: The MU puzzle
    ... (Sorted by highest value in array.) ... Doesn't this only do one iteration? ... It does simplify the valid, ...
    (comp.lang.perl.misc)