write a program to swap Two numbers without using temp variable.
Answer Posted / anantha
b=a+b
a=b-a
b=b-a
if a=3 and b=5
then now b=a+b=8
and a=8-a=8-3=5,now a=5
b=8-a=8-5=3,now b=3
so, a=5 and b=3
Is This Answer Correct ? | 198 Yes | 59 No |
Post New Answer View All Answers
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
differentiate built-in functions and user – defined functions.
What is the difference between #include
what are bit fields in c?
Why do we use namespace feature?
Who is the main contributor in designing the c language after dennis ritchie?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What are the advantages and disadvantages of c language?
What are the data types present in c?
What is data structure in c language?
program to convert a integer to string in c language'
Which is an example of a structural homology?
What are different storage class specifiers in c?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is malloc return c?