Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


{Anu Anudeep Anukumar Amar Amaravathi Aruna}
is their any possibility to find the letter "a"in the given list? if yes how?

Answers were Sorted based on User's Feedback



{Anu Anudeep Anukumar Amar Amaravathi Aruna} is their any possibility to find the letter "a&qu..

Answer / jincy

puts "searching variable a"
set list_4 [list Anu Anudeep Anukumar Amar Amaravathi Aruna]
foreach item $list_4 {
set elem [split $item ""]
foreach var $elem {
if {$var == "a"} {
puts $item
}
}
}

Is This Answer Correct ?    1 Yes 0 No

{Anu Anudeep Anukumar Amar Amaravathi Aruna} is their any possibility to find the letter "a&qu..

Answer / saravanan6060

set str {Anu Anudeep Anukumar Amar Amaravathi Aruna}




foreach i $str {




if {[regexp {(A)} $i match ] } {




puts $match
}
}

Is This Answer Correct ?    2 Yes 2 No

{Anu Anudeep Anukumar Amar Amaravathi Aruna} is their any possibility to find the letter "a&qu..

Answer / tcl_beginner

set str {Anu Anudeep Anukumar Amar Amaravathi Aruna}
set charstr a
puts [string first $charstr $str]

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More Tcl Interview Questions

How do you find the length of a string without using string length command in TCL??

6 Answers   Hexaware,


{Anu Anudeep Anukumar Amar Amaravathi Aruna} is their any possibility to find the letter "a"in the given list? if yes how?

3 Answers   Cisco, HCL,


How to Swap 30 & 40 in IP address 192.30.40.1 using TCL script?

8 Answers   HCL, ONGC,


Test case on windows calculator?

2 Answers  


What does Tcl stand for?

2 Answers  


Write a proc to increment the ip by the given no. of times. The incremented IPs should be a valid one. Ex: proc <name> {ip no_of_incrments} { body }

2 Answers  


How TCL works

1 Answers   Cisco,


Where can find the sample tcl programs?

3 Answers  


Problems with utf-8 between Mac and PC

1 Answers  


write a program to the given ip is valid private address or not(192.168.1.1)?

4 Answers   HCL,


How increment a character? For example, I give 'a' and I should get 'b'.

3 Answers  


How to run a package in tcl

2 Answers  


Categories