没有sizeof运算符的数组的大小 [英] size of an array without sizeof operator

查看:93
本文介绍了没有sizeof运算符的数组的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不使用

sizeof运算符的情况下测量数组的大小?

解决方案

< blockquote> su ************** @ yahoo.com ,India写道:


是否可以在不使用

sizeof运算符的情况下测量数组的大小?



你为什么要这样?这就是尺寸的大小。


-

Ian Collins。


< a href =mailto:su ************** @ yahoo.com> su ************** @ yahoo.com ,India写道:


是否可以在不使用

sizeof运算符的情况下测量数组的大小?



不可移植。 sizeof是一个原因的标准,为什么你想要通过篮球来跳过不完美的模拟?


" su**************@yahoo.com,印度 < su ************** @ yahoo.com>

写道:


是吗可以在不使用

sizeof运算符的情况下测量数组的大小?



答案与每个单线程中的答案相同

提出了这个愚蠢的问题。做一些研究。

-

我错过了什么吗?

--Dan Pop


Is it possible to measure the size of an array without using the
sizeof operator ?

解决方案

su**************@yahoo.com, India wrote:

Is it possible to measure the size of an array without using the
sizeof operator ?

Why would you want to? That''s what sizeof is for.

--
Ian Collins.


su**************@yahoo.com, India wrote:

Is it possible to measure the size of an array without using the
sizeof operator ?

Not portably. sizeof is the standard for a reason, why do you want to
jump through hoops to simulate it imperfectly?


"su**************@yahoo.com, India" <su**************@yahoo.com>
writes:

Is it possible to measure the size of an array without using the
sizeof operator ?

The answer is the same as it has been in every single thread
that brings up this stupid question. Do some research.
--
"Am I missing something?"
--Dan Pop


这篇关于没有sizeof运算符的数组的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆