wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / shrikantauti
i dont know the methods but can give the code to swap values without temporary variable.
a b
a=a+b
b=a-b
a=a-b
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Here is a good puzzle: how do you write a program which produces its own source code as output?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is the benefit of using an enum rather than a #define constant?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Explain pointers in c programming?
Differentiate between new and malloc(), delete and free() ?
what are bit fields in c?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
formula to convert 2500mmh2o into m3/hr
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What are the 5 types of inheritance in c ++?
what are the different storage classes in c?
Was 2000 a leap year?
Is null equal to 0 in sql?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above