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
What are the types of macro formats?
i want to know the procedure of qualcomm for getting a job through offcampus
Describe the modifier in c?
What is signed and unsigned?
Write a program to check prime number in c programming?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Are pointers integers in c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What are qualifiers and modifiers c?
What are the keywords in c?
What is a pointer in c plus plus?
Explain how do you use a pointer to a function?
will u please send me the placement papers to my mail???????????????????
Explain what are preprocessor directives?
a program that can input number of records and can view it again the record