Modern concrete has steel rebar, which is very useful, but eventually corrodes. Stainless steel rebar could be used if longevity mattered, but usually it doesn’t because the building will likely become functionally obsolete and need replacing before then.
You could wouldnt even need that. https://de.wikipedia.org/wiki/Opferanode
Define functionally obsolete.
Ultimately most tall structures as a reinforced concrete skeleton with glass hung on the sides.
It seems to me that as you're going to replace it with another basically identical concrete skeleton it makes sense to have that skeleton last as long as possible. And then refit that skeleton.
> Stainless steel rebar could be used
There are also coated and non-metallic rebars.
It only corrodes if it's not completely encased in concrete. The concrete stops the reaction. And, if one portion of the rebar is not encased it will eventually corrode through overtime.