Question: do accidentals affect all octaves?
Answer: In general, only key signature accidentals apply across all octaves, so if it's an accidental on a particular note, only play it there. ... In the example given, high C must also have a flat symbol even though middle C has a flat symbol, if the composer intended a C-flat octave.