0
how should i compare two strings in c/c++
till now i have using == operators. but there are several methods like strcmp(),etc. what should i use
4 Respuestas
+ 20
By using "strcmp" function.
It is available in the library string.h
+ 1
use strcmp to compare string if both string equal then it will return zero. For c include string.h and for c++ include cstring.h header file.