answersLogoWhite

0

char mystring[] = "This is a string"; int mystringlength = strlen(mystring); /* mystringlength is now 16 */

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Music & Radio

How do you determine string or cable length for your compound bow?

what is the string length of a Mathew Mission compound bow


How can you change the length of a vibration string?

Moving your finger along the string will alter the length and the pitch of the sound produced.


How do you produce sound out of string instruments?

Pluck the string with your finger or with anything (like a pick or the hammer of a piano) and it will cause the string to vibrate at a frequency which is determined by the thickness of the string and the length of the string (which is a fixed length on a piano, but is determined by where you fret (push down on with your fingertip) the string on instruments like guitars and violins. The frequency of the vibration determines the note... since sound IS vibration.


How do you use string level?

Put the string in place at the correct height at one end using a nail or other firm fastener. Hook the string level on the string and use it to insure the string is level before fastening the other end. Often used when building brick walls, fences and when putting in brick sidewalks to measure level.


How do you relate the frequency of length of vibrating string?

As the tension of a string increases the pitch increasesDirect RelationshipIf by pitch you mean a specific frequency change than this is a more relevant knowledge piece:The equation for the fundamental frequency of an ideal taut string is:f = √(TL/m)/2Lwheref is the frequency in Hertz (Hz)T is the string tension in Newtons (N)L is the length of the string in meters (m)m is the mass of the string in kilograms (kg)√(TL/m) is the square root of T times Ldivided by m (it is the square root of what is in the parentheses but not including the 2L)Source: http://www.school-for-champions.com/science/sound_string_equation.htm

Related Questions

How do you get the length of an ANSI string using PHP?

$string ="Guess my length"; $length = strlen($string); now the $length will have the length of the string.


How do you find the length of the string using strlen?

int len = strlen("some string"); // len has value 11


Find length of the string without using loops and control structures?

length = strlen(string);


How do you find the length of string without using strlen function in MySQL?

SELECT char_length (...) FROM ...


What function returns the length of a string?

strlen


What is the length command line argument in character?

Use the function strlen(string);


How do you find the length of string without using the strlen function in PHP?

$str = "Hello"; $nameArr=str_split($str); print_r($nameArr); echo "length: ".count($nameArr);


How do you check the length of a string in PHP?

It is fairly simple to check the length of a string in PHP. All you need to do is use the function strlen(). Below is an example of how it is used. <?php $my_text = "Hello"; echo strlen($my_text); // outputs 5 ?>


Write c program to print palindrome using string without using strrev strlen strcam?

sdfdg


Write a prog to find length of string using strlen function?

void main() { char str1[30]; char str2[30]; int len1,len2; printf("Enter string1......:"); gets(str1); printf("Enter string2......:"); gets(str2); len1=strlen(str1); len2=strlen(str2); printf("%s length = %d",str1,len1); printf("%s length = %d",str2,len2); }


How do you reverse a string with array and function?

<?php $str = "1234567"; $strArr = str_split($str); //split up $str by 1 character $strlen = strlen($str) - 1; //get length of $str - 1 since the $strArr starts at 0 for($i=$strlen;$i>=0;$i--) { echo $strArr[$i]; } ?>


How do you find last char in c string?

(strlen(str) == 0) ? '\0' : str[strlen(str)-1]