write the code to reverse a string without using Strrev
built in function.
Answers were Sorted based on User's Feedback
Answer / fatekiller
code to reverse a string
first i wrote a function and then called that function to
reverse a string.
mystr=inputbox("enter the string")
ms=revstr(mystr)
print(ms)
Function revstr(mystr)
L=len(mystr)
revstrr=""
For i=0 to L-1
c=mid(mystr,L-i,1)
revstrr=revstrr&c
Next
revstr=revstrr
End Function
This program is written using the concept of MID function.
| Is This Answer Correct ? | 4 Yes | 5 No |
Answer / m.bindu kumar
'Code to reverse a string without using strrev using
functions
Function stringreverse(a)
strlen=len(a)
For i = strlen to 1 step -1
strrev=mid(a,i,1)
stn=stn+strrev
Next
msgbox stn
End function
Dim strrev,strlen, strname,stn
a=inputbox ("enter the string to reverse")
stringreverse(a)
| Is This Answer Correct ? | 3 Yes | 6 No |
Answer / ram
x="abcdefg"
v= len(x)
For i=1 to len(x)
newstr=mid(x, v,1)
a=a&newstr
v=v-1
Next
msgbox a
| Is This Answer Correct ? | 2 Yes | 5 No |
How to Analyze the Checpoint results by Text/Text Area Checkpoint?
how to test one edit box using dotnet addin for Web Applications? write script?
How to Set the Global Sync Timeouts in QTP?
What is AUT in object reposity in QTP? Why we use it in Object repository???What is full form???????
WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT
How do you open adobe acrobat file in QTP and do some testing on that file ?
In qtp,how to interact tool & application build?
how will check the links in multiple pages at a time
How to export QTP results to an ".xls" file?
How to supress warnings from the "Test results page"?
How to import a test case present in ".xls" file to TD under a Test set?
What is quicktest professional?