How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer Posted / manju
main()
{
int a=16,b=19;
a=a+b;
b=a-b;
a=a-b;
printf("a and b are:%d\t%d",a,b);
}
Output:
a and b are:19 16
Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What is #include stdio h and #include conio h?
How are portions of a program disabled in demo versions?
Is sizeof a keyword in c?
Why c is called a middle level language?
What is extern keyword in c?
What are unions in c?
What are dangling pointers? How are dangling pointers different from memory leaks?
Do pointers store the address of value or the actual value of a variable?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
Explain can you assign a different address to an array tag?
Explain the use of function toupper() with and example code?
What is scanf () in c?
Is exit(status) truly equivalent to returning the same status from main?
What is a volatile keyword in c?
What does 4d mean in c?