answersLogoWhite

0

EMPTY STRING-it is a unique string of length zero.the empty string is still a sring upon which strin operation may be attempted.

NULL STRING-In programming ,a character string that contais no data.

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

What is the difference between null pointer ASCII null character and null string?

A null pointer is a pointer which does not point to any valid memory location, and usually contains the binary value "0" to represent this (this is language dependent). The ASCII null character is a character-sized zero value (in ASCII, it is an unsigned byte with a value of 0), and typically represents the end of a string (esp. as in C and C++). A null string is one that is zero characters of usable string data; in a length-based string, this means the length parameter is set to 0, and in an ASCII null-terminated string, means the first character is set to 0.


Why ÿ occurs at end of string in C?

In C, the character ÿ (which has the ASCII value of 255) can appear at the end of a string if the string is not properly null-terminated. In C, strings are represented as arrays of characters, and they must end with a null character ('\0') to indicate the end of the string. If a string is unintentionally filled with values up to the limit of the array without a null terminator, it might include ÿ as a leftover value from memory. This can lead to undefined behavior when manipulating the string, as functions expect the null character to determine where the string ends.


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


What is the difference between an array shift and unsetting a variable in PHP?

By shifting the values in an array, you are moving a key's value to the previous key. The very first key's value is obliterated. By shifting all values in the array, all keys will have a value of NULL. Unsetting a variable is entirely different -- performing a variable unsetting causes the variable to have a value of NULL, as if it was never set.


What is the difference between a null pointer and a null macro?

Using a NULL macro to make C portableI'll assume that you're asking your question for C type language programming. A NULL pointer is a pointer that's guarnteed to point to nothing. This may be 0 in a UNIX/Linux system or some other address in another system. Using the NULL macro to set/initialize your pointers will make your programs more portable among systems than using something like the 0.#include char *c = 0; // initialize to NULL--not portablechar *p = NULL; // initialize to NULL as defined in stdio is portableAddendumThe code:char *c = 0;actually is portable because the compiler converts 0's used in a pointer context (cast to a pointer) to the machine's representation of a NULL pointer, which may or may not be all 0 bits. The NULL macro itself might be defined as something like 0 or (void *)0, and both definitions are portable. As a corollary, the following code is also portable:if (!c) {// do something}because it is equivalent to:if (c != 0) {// do something}and the 0 above is converted to a NULL pointer because it is being compared with a pointer.

Related Questions

What is the difference between 0 and null?

Nothing - 0, Zero and null are the same things


What is the difference between equals 0 and equals NULL?

NULL is for pointers, 0, for numbers


What is the difference between a null hypothesis and a research hypothesis?

The null hypothesis is the default hypothesis. It is the hypothesis that there is no difference between the control group and the treatment group. The research hypothesis proposes that there is a significant difference between the control group and the treatment group.


What is the difference between zero vector and null vector?

They are the same.


What is the difference between array and string of array?

When we declare an array of characters it has to be terminated by the NULL , but termination by NULL in case of string is automatic.


What is the difference between two source hypothesis and two gospel hypothesis?

null


What is the major difference between the null and alternative hypothesis?

In research, a null hypothesis means that no results will be found. An alternative hypothesis means that results will be found.


What is the difference between alternative hypothesis and null hypothesis?

In research, a null hypothesis means that no results will be found. An alternative hypothesis means that results will be found.


What happens when null pointer is released?

Undefined behavior. Literally anything can happen. ------------------------------------------------------------------ And does with one exception that I know of, DJGPP (for DOS). Obviously before freeing a pointer it is tested for being NULL.


In testing for differences between the means of two related populations the null hypothesis is?

That there is no difference between the means for the two populations.


What hypothesis states that there is no change no difference or no new finding?

null


What is the difference between zero matrix and null matrix?

there is none you weasel. the only good matrix is revolutions. :)