#include using namespace std; int main() { char word[10]=\"php\"; char word1[10]=\"php\"; if(word==word1){ cout<<\"word
To justify c++ tag you'd probably want to declare word and word1 as std::string. To compare them as is you need
word
word1
std::string
if(!strcmp(word,word1)) {