English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2006-09-13 06:17:13 · 5 answers · asked by Anonymous in Computers & Internet Programming & Design

5 answers

No. A null statement is a no-op (command to do nothing). A null pointer is a pointer with a value of zero.

2006-09-13 06:21:44 · answer #1 · answered by Chris J 6 · 3 0

No.

A null statement is a statement that creates a no-op instruction to the processor. In other words, that clock cycle that it executes in is not used. The cycle occurs, but the state of the processor stays unchanged.

A null pointer is a memory address that refers to nothing. In memory address schemes, that is "nowhere". It is commonly used to initialize a pointer when it is created so it can be easily tested before use to guard against trying to access variable addresses that aren't validly initialized.

2006-09-13 06:35:09 · answer #2 · answered by Anonymous · 0 0

Null pointer example:
Using 32 bit C/C++, an uninitialized global variable (i.e. a variable declared outside of main()/WinMain()/Main Street) that's declared as a null pointer would have a value of zero. This is because the start up code usually zeroes out global variables at run time.
If you kick out the stupid start up code, then the global variable will equal whatever value that's sitting at that memory location. Local variables (i.e. allocated off the stack) will be like that too.

2006-09-13 08:23:42 · answer #3 · answered by Balk 6 · 1 0

Actually, a null pointer points to nothing, not zero. Zero is a number that is valid, nothing, however, is not valid.

2006-09-13 06:24:52 · answer #4 · answered by nyrgoalie 2 · 0 2

null and void

2006-09-13 06:21:05 · answer #5 · answered by Noble Angel 6 · 0 1

fedest.com, questions and answers