Re: String Comparision
- From: Barry Schwarz <schwarzb@xxxxxxxxx>
- Date: Mon, 30 Apr 2007 03:51:02 -0700
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
.
- References:
- String Comparision
- From: user34
- Re: String Comparision
- From: Aditya
- String Comparision
- Prev by Date: Re: String Comparision
- Next by Date: Re: Ahead of "main"?
- Previous by thread: Re: String Comparision
- Next by thread: Re: String Comparision
- Index(es):
Relevant Pages
|