write a program to swap Two numbers without using temp variable.
Answer Posted / venki
In vb script...............
a=inputbox ("Enter the first value:")
b=inputbox( "Enter the second value:")
msgbox "Before swap a= "&a&" b= "&b
a=cint(a)+cint(b)
b=cint(a)-cint(b)
a=cint(a)-cint(b)
msgbox "After swap a= "&a&" b= "&b
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How can I use a preprocessorif expression to ?
What is the difference between a string and an array?
Explain argument and its types.
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Why c is a mother language?
Is c easy to learn?
What is the concatenation operator?
How many levels of pointers have?
Do you know the use of fflush() function?
How do you print an address?
write a program to rearrange the array such way that all even elements should come first and next come odd
Why isn't any of this standardized in c? Any real program has to do some of these things.
What are type modifiers in c?
What are the types of data structures in c?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area