Which of the following represents the logical condition in C++ for all men, who were born in 2001 or later and whose first name starts with the letter 'S' or 'P'?
a) birth_year > 2000 && female == false && (first_name[0] == 'S' || first_name[0] == 'P')
b) birth_year > 2000 && female == true && (first_name[0] == 'S' || first_name[0] == 'P')
c) birth_year >= 2001 && female == false && (first_name[0] == 'S' || first_name[0] == 'P')
d) birth_year >= 2001 && female == true && (first_name[0] == 'S' || first_name[0] == 'P')

Q&A Education