0

Give an example of using greater or smaller operators on strings

5th Jul 2020, 6:47 AM
Chikkala Mohan
Chikkala Mohan - avatar
4 Answers
+ 4
You should specify the concerned programming language.
5th Jul 2020, 6:54 AM
Gordon
Gordon - avatar
+ 3
In strings first character of each word is compared Grapes>Orange G ascii value is smaller than O ,so it results in False Suppose there was Cherry>Cherri then comparing each character y and i are checked since they have different ascii values So here y is greater than i so it results in true
5th Jul 2020, 7:10 AM
Abhay
Abhay - avatar
0
5th Jul 2020, 6:54 AM
Chikkala Mohan
Chikkala Mohan - avatar
0
Thank
5th Jul 2020, 7:11 AM
Chikkala Mohan
Chikkala Mohan - avatar