wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / vijayakumar kanagasabai
main()
{
int a=4;b=6;
printf("Before swapping: a=%d, b=%d",a,b);
a=a+b;
b=a-b;
a=a-b;
printf("After swapping: a=%d, b=%d",a,b);
}
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
what is the role you expect in software industry?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is identifier in c?
What is the difference between procedural and declarative language?
I have seen function declarations that look like this
What is union and structure in c?
What is realloc in c?
What is the code for 3 questions and answer check in VisualBasic.Net?
Explain how do you declare an array that will hold more than 64kb of data?
What is a structure and why it is used?
What are different types of variables in c?
What are the 4 types of functions?
Why c language?
What is the size of enum in c?
How can you convert integers to binary or hexadecimal?