Accessing an array out of bounds, but returning earlier - UB?

前端 未结 0 1037
夕颜
夕颜 2020-12-30 05:28

I have code that calculates an array index, and if it is valid accesses that array item. Something like:

int b = rowCount() - 1;
if (b == -1) return;
const Bl         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题