answersLogoWhite

0


Best Answer

A null has no length...

I dont know java or c but in sql and vb there are functions to convert nulls

isnull(some_field,' ')

would return either the field, or a space if its null

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Length of a null string is supposed to be 1?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Music & Radio

Why the tone of your guitar changes when you switch between the different pickups?

A plucked string has many modes of vibration which all occur simultaneously; most of these correspond to overtones or harmonics of the fundamental frequency of the vibrating string. Near the center of the string, the fundamental frequency has the largest amplitude; a pickup at 1/4 of the length of the string will be at the point of maximum amplitude of the second harmonic and at a null point for the fourth harmonic. This position gives a strong, full, mellow tone. A pickup at 1/8 of the length of the string (closer to the bridge) will be at the point of maximum amplitude of the third harmonic, and will also get a lot of the fourth and fifth harmonics. This gives a much brighter tone. The change in tone caused by plucking the string close to the neck versus close to the bridge is based on the same idea: bringing out the harmonics in the string in different proportions. See link to a related article, below.


How long is the cello itself?

It can be either by your height, size, body length, and age.Hope this helps...By Your Height:* 1/8 to 1/4 size - below 4 feet* 1/2 size - 4 to 4 1/2 feet* 3/4 size - 4 1/2 to 5 feet* 4/4 size - 5 feet and above By Body Length:* 1/8 size - 17.75 to 20 inches* 1/4 size - 20 to 23 inches* 1/2 size - 23 to 26 inches* 3/4 size - 26 to 27.25 inches* 4/4 size - 30 inches and aboveBy your age:* 1/8 size - 4 to 6 years old* 1/4 size - 5 to 7 years old* 1/2 size - 7 to 11 years old* 3/4 size - 11 to 15 years old* 4/4 size - 15 and aboveStandard 4/4 Cello: Overall length -- 48 1/2 inches; Scale or string length -- 27 1/2 inches.Intermediate 3/4 Cellos: Overall length -- 44 inches; Scale or string length -- 25 1/4 inches.Junior 1/2 Cellos: Overall length -- 40 1/4 inches; Scale or string length -- 22 3/4 inches.= What is the names of the strings on a cello? = he highest is the A string, then the D string, then the G string, and finally, the C string.


Accept a string and reverse a string in c?

#include using std::cin;using std::cout;using std::endl;int main(){const int arraySize = 128;char myString[arraySize] = {'0'};cout


Will wetting the string of a string telephone improve the transmission of sound?

Yes, but only if the string is kept taut. A slack string causes the vibrations to dissipate in the first 1/2 inch of string.


What is a violin Bb?

deppends what string but commonly it is the "low 1" on the a string or, the "low 2" on the G string or the "low 4" on the e string depending on where you want to play it.

Related questions

What is the difference between string and char array?

3 differences.................. 1. length wise.... 2.initialization 3. null terminated length of char array is differ from string........ initialization of string is differ from char....... and string is null terminated...........


Is there any program in C to count the length of a given string without using Built-in functions?

// returns the length of str int strLength(const char* str) { int length = -1; // we know that all strings in C must be null-terminated, so when a character of // str is the null character, we have reached the end while(str[++length]); return length; }


How do you reverse a given string without using string functions?

1.take while loop in which u continue up to null in array of string. 2.once u get null pointer then take a new array of same length. 3.when u get null there ll save position no in variable i. 4.take while loop i to 0; 5.and j=0 for new array. 6.in above loop copy old array to new array in each cycle of loop. 7.j++; 8.u ll get reverse of string.


Any five string related function in vb?

String-valued functions return NULL if the length of the result would be greater than the value of the max_allowed_packet system variable. For functions that operate on string positions, the first position is numbered 1. 1,ASCII(str)-Returns the numeric value of the leftmost character of the string str. Returns 0 if str is the empty string. Returns NULL if str is NULL. ASCII() works for characters with numeric values from 0 to 255.1. SELECT ASCII('2′); 2,BIN(N)-Returns a string representation of the binary value of N, where N is a longlong (BIGINT) number. SELECT BIN(12); 3,BIT_LENGTH(str)-Returns the length of the string str in bits.SELECT BIT_LENGTH('text'); 4,CHAR(N,…)-CHAR() interprets the arguments as integers and returns a string consisting of the characters given by the code values of those integers. NULL values are skipped.1.SELECT CHAR(77,121,83,81,'76′);SELECT INSERT('Quadratic', 3, 4, 'What'); 5,INSERT(str,pos,len,newstr)-Returns the string str, with the substring beginning at position pos and len characters long replaced by the string newstr.


What is the strcpy function?

The strcpy function is declared in the <string.h> header of the C standard library. The function is used to copy a null-terminated string (a null-terminated array of type char). The function accepts two arguments: a pointer to the memory allocation where the copy will be placed; and a pointer to the first character of the null-terminated string to be copied. The memory allocation where the copy will be made must be large enough to accommodate the string, including the null-terminator. Example usage: void f (char* s) { int len; char* c; len = strlen (s) + 1; /* determine length of string (including null-terminator) */ c = malloc (len); /* allocate memory for copy */ strcpy (c, s); /* ... */ free (c); /* release allocation */ }


How do you reverse a given string in c plus plus?

The simplest way is to use the strrev() function.To manually reverse a string, point to the first and last characters, swap their values, then move the pointers one character towards the middle of the string and repeat. If the pointers point to the same character or pass each other, the string is reversed.The following is an example implementation. The function only process the given string when the string has 2 or more characters and a null-terminator is found within the first lencharacters.#include #include using namespace std;void strRev( char * input, size_t len ){// Minimum length is three (2 characters, 1 null-terminator).const int min = 3;if( len < min )return;// Locate the left-most character.char * l = input;// Locate the null-terminator:char * n = l;while( *n && n < l+len )++n;if( *n )return; // null-terminator not found.// Confirm the length (ignoring null-terminator).if( n-l < min-1 )return;// Locate the right-most character (left of null-terminator)char * r = n-1;// Repeat while right pointer is greater than left pointer.while( r>l ){*n = *l; // use the null-terminator to assist the swap.*l++ = *r; // change left value and advance pointer.*r-- = *n; // change right value and retreat pointer.}// Restore the null terminator.*n = 0;}int main(){// Safest method of entering a string:string input = "";printf( "Enter a string: ");getline( cin, input );// Determine length of input + null-terminator.size_t len = input.length() + 1;// Convert string to a null-terminated string.char * p = ( char * ) calloc( len, sizeof( char ));memcpy( p, input.data(), input.length() );// Reverse the string.strRev( p, len );printf( "Reversed: %s\n", p );// Release memory.free( p );return( 0 );}


Is string is an predefined data types in c?

No. In C string is an array of characters terminated by a null character (a character having ascii value 0).In more high level languages like C# and Java string is a predefined data type and hence limits the operation on string by some pre-defined library functions. But C provides complete control over strings.The Following step shows declaration of a string in various methods. char str[6] = {'h' . 'e'. 'l'. 'l'. 'o'.'\0'}; One thing you need to notice is that the size of the character array should be atleast 1 greater than the number of characters in the string for accommodating the null character. but char str[] = "hello"; statement appends the null character automatically and no need to specify the length of the array (of course you can specify it if you want). The compiler automatically allocates the memory according to the length of the string.


What is the difference between Oracle data types char and varchar2?

Character string values storage:1. CHAR:&sect; Stores strings of fixed length.&sect; The length parameter s specifies the length of the strings.&sect; If the string has smaller length it padded with space at the end&sect; It will waste of a lot of disk space.&sect; If the string has bigger length it truncated to the scale number of the string.2. VARCHAR:&sect; Stores strings of variable length.&sect; The length parameter specifies the maximum length of the strings&sect; It stores up to 2000 bytes of characters&sect; It will occupy space for NULL values&sect; The total length for strings is defined when database was created.3. VARCHAR(2):&sect; Stores strings of variable length.&sect; The length parameter specifies the maximum length of the strings&sect; It stores up to 4000 bytes of characters&sect; It will not occupy space for NULL values&sect; The total length of strings is defined when strings are given


How is a 20 byte string value stored in memory?

As a 21 byte array of type char (including 1 byte for the null terminator).


Reverse of a given string using recursion?

#include &lt;stdio.h&gt; #include &lt;conio.h&gt; #include &lt;string.h&gt; void main() { char str[10],temp; int i,len; printf("Enter String : "); scanf("%s",str); len=strlen(str)-1; for(i=0;i&lt;strlen(str)/2;i++) { temp=str[i]; str[i]=str[len]; str[len--]=temp; } printf("%s",str); getch(); } Please do give your views on this. With Regards, Sumit Ranjan. Analyst at RMSI Company.


There is a piece of string wrapped tightly around the earth How much longer would the string need to be if there was a gap of 1 meter between the string and the earth?

This is a minor geometrical calculation in which the radius of the object the string circles is irrelevant. If the radius of the Earth is 'r', then the length of the tight string = 2&pi;(r) The increase of 1 metre is an increase of the radius to r+1, so the new length is 2&pi;(r+1) If we give &pi; a value of 3.1416, then the old length is the string was 6.2832(r) and the new length is 6.2832(r+1) or 6.2632(r) + 6.2632 So, as we don't put a value on (r), this actually means that if the string is around a pea or the earth the extra length needed to loosen it by 1 metre all around is 6.2632 metres and is the same in either case.


How do you toggle case of string in c code. Example is TogGle will turn into tOGgLE?

#include&lt;stdio.h&gt; int main() { char str[100]; int i; printf("Please enter a string: "); // gets(str); // fgets is a better option over gets to read multiword string . fgets(str, 100, stdin); // Following can be added for extra precaution for '\n' character // if(str[length(str)-1] == '\n') str[strlen(str)-1]=NULL; for(i=0;str[i]!=NULL;i++) { if(str[i]&gt;='A'&amp;&amp;str[i]&lt;='Z') str[i]+=32; else if(str[i]&gt;='a'&amp;&amp;str[i]&lt;='z') str[i]-=32; } printf("String in toggle case is: %s",str); return 0; }