answersLogoWhite

0

What is null point?

Updated: 8/9/2023
User Avatar

Wiki User

12y ago

Best Answer

A pointer variable which is declared but not initialized is called a NULL POINTER.

ex: int *p;

Please don't use the above. A NULL pointer is a specific value assigned to a pointer, just like any other value. NULL is a language-specific designation, and is guaranteed to be comparable to, unlike uninitialized variables, which can have any value.

That is:

int *a;

int *b = NULL;

int *c = (int *) malloc(sizeof(char));

( a c) is NEVER true.

NULL is a reserved word in most high-level languages, and indicates a specific value for assignment. It is commonly used to indicate that something has not yet been assigned a "real" value, or has had its contents deleted. It is an EXPLICIT value, and not just "undefined".

In the context of pointers (which, remember, are really memory location addresses), a NULL pointer is one which has NO value, and thus does NOT point to any memory location. The difference between an uninitialized pointer and a NULL pointer is that most common languages do not specify what value an uninitialized pointer has upon creation (many, such as C, are assigned a random value), while a NULL pointer explicitly has NO value (which is the meaning of NULL).

Many modern languages and compilers will assign NULL to a pointer upon initialization, but don't count on it. It is sloppy programming to do so, and can lead to many hard-to-find errors.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

There are times when it is necessary to have a pointer that doesn't point to anything. The macro NULL, defined in , has a value that's guaranteed to be different from any valid pointer. NULL is a literal zero, possibly cast to void* or char*.

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

When a pointer refers initial address in memory or 0th address in memory it is called null pointer.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Null point is the point in which the gravitational force between moon and the earth is equal in opposite direction. So there is no effect of any force.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is null point?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does the mid point mean in a graph?

null


What is a NULL Point of a galvanometer?

Its a point on the galvanometer where the galvanometer shows no deflection as no current passes through it.


What actors and actresses appeared in Null Sonne No Point - 1997?

The cast of Null Sonne No Point - 1997 includes: Lester Bowie as himself Hartmut Geerken as himself Roscoe Mitchell as himself


What is a key point of stretching?

null set ,universal set,cardinality set


What is null point in C programming?

I'm going to go out on a limp here, and guess you mean "Null Pointer." Well, it's a pointer to nothing. For most systems, it's 0, but rather use NULL instead.


What does null means in java?

Null is a value that any variable can have. It means the absence of a value. However, null can only be assigned to object reference variables; attempting to execute a method on a null variable will cause the JVM to throw a NullPointerError.


Explain the principle of null-method of measurement?

The null method is used in measuring the unknown EMF of batteries. The method is about using a potentiometer circuit with the battery of a known and then an unknown EMF connected to it one after the other and locating, in each case, the position of the 'null point'; the point on the potentiometer circuit where the current through the battery is zero.


What is the use of null pointer?

Pointer is a variable that stores address of a variable . A NULL Pointer a pointer that doesn't point to anything, it is a literal zero .Some people ,notably C++ programmers, prefer to use 0 rather than NULL.


What was Maleficent point of view in Snow White the book?

Maleficent is in Sleeping Beauty not Snow White - So her point of view is null


Null Null Null?

Very small.


If null is compared with null what is the result-true or false or null or unknown?

You mean SQL? NULL = anything IS NULL NULL <> anything IS NULL ... NULL IS NULL = TRUE NULL IS NOT NULL = FALSE


Why should null point be obtained in the middle one third of wire?

Not always. This null point can be obtained practically on any part of the wire, as this simply depends upon the segmental thicknesses of the wire, the different resistances, cells or other appliances attached on its different segments.