Personally, I feel it's best to use the entire int (or char or short or whatever) as the boolean flag. Sure it uses more memory but it's much more readable. Unless memory is a serious restriction, avoid bit-hacks when you can.
以上就是return an int or pass an int pointer -- whats better?的详细内容,更多请关注web前端其它相关文章!