How do you determine the length of a string value that was stored in a variable?

How do you determine the length of a string value that was stored in a variable?
Answer
Answer: To get the length of a string value,
use the function strlen(). For example, if you have a variable named FullName, you can get the length of the stored string value by using this statement: I = strlen(FullName); the variable I will now have the character length of the string value.
 

Tìm kiếm

Back
Top