How do you find the length of a string without using string length command in TCL?
Submitted by: Administratorset str "lenghtofthisstring"
set len 0
set list1 [ split $str "" ]
foreach value $list1 {
incr len
}
puts $len
Submitted by: Administrator
set len 0
set list1 [ split $str "" ]
foreach value $list1 {
incr len
}
puts $len
Submitted by: Administrator
Read Online TCL (Tool Command Language) Job Interview Questions And Answers
Top TCL (Tool Command Language) Questions
☺ | How to check whether a string is palindrome or not using TCL script? |
☺ | What is TCL? |
☺ | Where can we find the sample tcl programs? |
☺ | How do you find the length of a string without using string length command in TCL? |
☺ | How increment a character? For example, I give a and I should get b? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |