String Comparision
Posted: Sun Feb 07, 2010 8:42 am
Strings when they are compared with each other it happens at the character level i.e character by character comparision, when two strings are of unequal size then is the smaller string padded to make it equal with the longer string, if yes then with which character is it padded with?
Ex 'abcd'<'efghts'
In the above example does the single relational expressions becomes multiple expressions involving one character each time? "a<e", "b<f".....
If so then how is the final value decided, is it based on majority?
or is my understanding completely wrong please enlighten.....
Thanks
Ex 'abcd'<'efghts'
In the above example does the single relational expressions becomes multiple expressions involving one character each time? "a<e", "b<f".....
If so then how is the final value decided, is it based on majority?
or is my understanding completely wrong please enlighten.....
Thanks