![]() 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.48) Is it possible to initialize a variable at the time it was declared?Yes, you don’t have to write a separate assignment statement after the variable declaration, unless you plan to change it later on. ![]() The correct statement would be: strcpy(myName, “Robin”) 47) How do you determine the length of a string value that was stored in a variable?To get the length of a string value, use the function strlen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |