write a program to swap Two numbers without using temp variable.
Answer Posted / rohan
four Types with single statements:
1.b=(a+b)-(a=b);
2.a^=b^=a^=b;
3.a=a+b;
b=a-b;
a=a-b;
4.a=a*b;
b=a/b;
a=a/b;
rohanraju143@gmail.com from NIT Waramgal
| Is This Answer Correct ? | 18 Yes | 7 No |
Post New Answer View All Answers
Why C language is a procedural language?
What is floating point constants?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What are reserved words with a programming language?
main() { printf("hello"); fork(); }
Why do some versions of toupper act strangely if given an upper-case letter?
What is spaghetti programming?
What does a pointer variable always consist of?
What are global variables?
What are the advantages of c preprocessor?
Does free set pointer to null?
What is "Hungarian Notation"?
What is #include stdlib h?
Explain the difference between malloc() and calloc() function?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?