ans is a pointer to the first element in ans[].
ans == Answers[cat][qst] is a comparison of 2 pointers.
To compare C-strings, you need strcmp() which is found in <cstring>