swap two number wthout using third variable
Answer Posted / ashutosh tiwari
void swap_num(int *a, int *b)
{
*a = *a+*b; *b = *a-*b; *a = *a-*b;
}
or
void swap_num(int *a,int *b)
{
*a = *a^*b; *b = *a^*b; *a = *a^*b;
}
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
what is the system development cycle
Which design patterns have you used?
Difference between HTML and DHTML?
how to convert infix expression to prefix expression?
write a query that returns one row for each department and the number of employees in that department. Given two tables EMPLOYEE and DEPARTMENT, where there can be multiple employees per department.
Delta 5 weight scale not connect with oracle application what i can do?
I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!
Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.
What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?
What are events in smartforms?
purpose of abstraction and interface
where is available in this mantis toturials?
what is integration testing in real time applications?
what does mean and stack mean in genral programming?
Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile