A. Both are influenced by African rhythms.
Both jazz and rock 'n' roll share the characteristic of being influenced by African rhythms. Jazz incorporates elements from African rhythms along with various cultural traditions, while rock 'n' roll is heavily influenced by African-American rhythm and blues. Therefore, the correct choice is A.