You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Write a TCL script to find the length of the string without using built-in command "string length"
set str "TCL SCRIPTING" ; # input string
puts [set k [string range $str end end]] ; # set variable k with last element/character of the string
puts "The length of the string is: [expr [string last "$k" $str] + 1]" ; # To fine the length of the string the position of the last charcter is incremented with 1