Equal/Unequal Char Array

Revision en1, by b14ck_5m0k3, 2022-12-20 12:14:25

char S[3], T[3]; cin >> S[0] >> S[1] >> S[2]; cin >> T[0] >> T[1] >> T[2]; why (S == T) gives no correct output, when it is?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English b14ck_5m0k3 2022-12-20 12:14:25 151 Initial revision (published)