You're not comparing strings, you're comparing pointers to strings.
The first one matches because your linker has coalesced the two strings "yellow" to the same physical pointer to save memory. Their addresses therefore compare as the same.
To compare the actual strings themselves, use strcmp()
or similar.