swap two integer variables without using a third temporary
variable?
Answer Posted / sumit salve
a=a+b-(b=a);
or
a=a*b/(b=a);
this will also swap two numbers!!!
Thank You...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is structure padding and packing in c?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is void main ()?
What is operator precedence?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
Explain output of printf("Hello World"-'A'+'B'); ?
Are local variables initialized to zero by default in c?
State the difference between realloc and free.
Not all reserved words are written in lowercase. TRUE or FALSE?
What does return 1 means in c?
Explain what is the difference between far and near ?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is the -> in c?
Explain low-order bytes.