Should I use NULL or 0?
来源:互联网 发布:java中什么是类 编辑:程序博客网 时间:2024/06/05 00:27
In C++, the definition of NULL is 0, so there is only an aesthetic difference. I prefer to avoid macros, so I use 0. Another problem with NULL is that people sometimes mistakenly believe that it is different from 0 and/or not an integer. In pre-standard code, NULL was/is sometimes defined to something unsuitable and therefore had/has to be avoided. That's less common these days.
- Should I use NULL or 0?
- 'array' or 'matrix'? Which should I use?
- Which should I use in my DTD, attributes or elemen
- Should I Use a Property or an Instance Variable?
- Which Extension Should I Use?
- When should I use shutdown()?
- When Should I Use HBase
- Should I use SAX or DOM? (Posted May 23rd, 1999 by Nazmul)
- (Vagrant Vs Docker)Should I use Vagrant or Docker for creating an isolated environment?
- Which I/O Strategy Should I Use?
- 摇滚童话 Should I stay or should I go
- Which style of WSDL should I use?
- When should I use Thread.getContextClassLoader()?
- Which style of WSDL should I use?
- Which style of WSDL should I use?
- How many hidden layers should I use?
- How many hidden units should I use?
- Which style of WSDL should I use?
- 让多页Excel表格自动打印统一表头
- 追求代码质量: 用 AOP 进行防御性编程
- BDC program for Purchase Info Records (ME11)
- What's wrong with arrays?
- UNIX 高手的 10 个习惯
- Should I use NULL or 0?
- SHA-1,MD5简单介绍
- .NET Remoting构建分布式数据库查询
- Ado.net间歇性出现莫名其妙问题的一种解决办法
- 安静
- .net下导致Session失效的一种情况:js教本中使用window.open和window.showModalDialog时需要注意
- tomcat5下jsp出现getOutputStream() has already been called for this response异常的原因和解决方法
- 年底了,也来点评一下自己
- 如何使用JavaScript和正则表达式进行数据验证