This very much depends on where you are. I had an apartment in a high-rise building in Austin TX a few years ago that did not have openable windows of any kind (I also did not realise this until after signing the lease, which was unfortunate). I assume the building met code.