How to swap two String values without using a
third variable?
Answer Posted / andy
'Swapping two strings in vb.net
Private Function SwappStrings(ByVal str1 As String,
ByVal str2 As String) As String
str1 = str1 + str2
str2 = str1.Substring(0, (str1.Length -
str2.Length))
str1 = str1.Substring(str2.Length)
SwappStrings = "A is : " & str1.ToString & "And B
is : " & str2.ToString
End Function
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Difference between delegates and Events?
what is the work of 1tier,2tier,&ntier? Plz Explain it!
Q1.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.
1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?
Need provab technical test questions
can we retrieve only integer/String type columns from a table,if yes how?
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct
Give examples of macro quoting function?
what are the advantages of sap on other software ?
what is web service in java? have u use before.
For a binary tree with n nodes, How many nodes are there which has got both a parent and a child?
what is the extension of SPDS Dynamic cluster tables?
Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?
Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number
i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......