How many ways are there to swap two numbers without using
temporary variable? Give the each logic.
Answer Posted / kk
three logic
xor -> a^=b^=a^=b;
addition and subtraction,
multiply and division .......
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What is logical error?
What is a structure and why it is used?
What is the difference between malloc calloc and realloc in c?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is a stream in c programming?
How macro execution is faster than function ?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Can we assign integer value to char in c?
What is a structural principle?
How do I swap bytes?
What is %lu in c?
What is the purpose of main() function?
Describe explain how arrays can be passed to a user defined function
What is calloc() function?
What is c token?