write a program to swap Two numbers without using temp variable.
Answer Posted / prasanna
Swapping two variables in a single line with no temporary
variable..
b=(a+b)-(a=b);
so.. simple..
Prasanna. (prasanna7287@yahoo.co.in)
Is This Answer Correct ? | 351 Yes | 140 No |
Post New Answer View All Answers
Is c is a middle level language?
Can main () be called recursively?
Describe wild pointers in c?
Explain what are the different file extensions involved when programming in c?
Explain what are bus errors, memory faults, and core dumps?
Explain what is the advantage of a random access file?
Explain how does flowchart help in writing a program?
Difference between malloc() and calloc() function?
What are data types in c language?
What is array in C
What is 'bus error'?
Why we write conio h in c?
How to declare a variable?
How many identifiers are there in c?
Can two or more operators such as and be combined in a single line of program code?