Should i employ null or 0?, C/C++ Programming

A: In C++, the definition of NULL is 0, thus there is only an aesthetic difference. I prefer to ignore macros, so I employ 0. Another difficulty with NULL is that people sometimes wrongly believe that it is different from 0 and/or not an integer. In pre-standard code, NULL was/is sometimes described to something unsuitable and thus had/has to be ignored. That's less common these days.

 

Posted Date: 3/20/2013 8:16:39 AM | Location : United States







Related Discussions:- Should i employ null or 0?, Assignment Help, Ask Question on Should i employ null or 0?, Get Answer, Expert's Help, Should i employ null or 0? Discussions

Write discussion on Should i employ null or 0?
Your posts are moderated
Related Questions
solve mesh and nodal analysis through c/c++?

An experiment succeeds twice as often as it fails. Find the chance that in the next six trials there will be at least four successes.

Class Templates In addition to function  templates, C++  also supports the  method of class templates. By definition, a class template is a class definition that explains a fam

I want MODI method''s coding in c++ using all concepts of c++..please help me its my project work...


redirection in c++


Create a user-defined data structure (struct) called Node that represents a node within a linked list where the "data" stored in each node is a pointer to a Car object.    a) Wr

#q•Design and code a new function that accepts as parameters the gross pay by value and the federal tax, state tax, local tax, SS tax, and net Pay by reference. Calculate the taxes

Can you think of a condition where your program would crash without attaining the breakpoint that you set at the starting of main()? A: C++ let for dynamic initialization of glo