✏️ Explanatory Question

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

👁 2,194 Views
📘 Detailed Answer
💡

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.