write a program to swap Two numbers without using temp variable.
Answer Posted / george washington
Suppose:
x=1
y=3
Redefine:
x=x+y; //Or, x=1+3=4 and
y=x-y; // y=4-3=1 and
x=x-y; // x=4-1=3
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a code on reverse string and its complexity.
What standard functions are available to manipulate strings?
What are unions in c?
Why shouldn’t I start variable names with underscores?
Why do we use namespace feature?
Is boolean a datatype in c?
Is array name a pointer?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Write a program to generate random numbers in c?
What is keyword in c?
Why ca not I do something like this?
Write a factorial program using C.
What is hashing in c?
List the difference between a "copy constructor" and a "assignment operator"?
How can I manipulate strings of multibyte characters?