Home / Questions / How do you determine the length of a string value that was stored in a variable?
Explanatory Question

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

👁 2,194 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

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.