本文介绍了一个字符串多少字节占用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能告诉我下面的字符串将有多少字节占用
字符串ABC =一个?;
解决方案
从我的的:
I suspect that was written before I had a chance to work with a 64-bit CLR; I suspect in 64-bit land each string takes up either 4 or 8 more bytes.
EDIT: I wrote up a blog post more recently which includes 64-bit information (and contradicts the above slightly for x86...)
这篇关于一个字符串多少字节占用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!