Is there any other way to compare a string other than using string compare functions ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there any other way to compare a string other than using string compare functions ?

1st Dec 2019, 9:44 AM
kashish khaneja
3 Answers
+ 7
You can always use comparison operator "=="
1st Dec 2019, 9:48 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
You can use pointers to do that. I mean, not the comparison but for traversing if it is a long string and if you want a match for a particular word. And yes == will do the job.
1st Dec 2019, 10:48 AM
Avinesh
Avinesh - avatar
0
Okk thank uh
1st Dec 2019, 12:52 PM
kashish khaneja