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
how to convert the data from HTML file to SAS dataset?
Colors specified with the notation
Define Form modules, Class modules and Standard modules
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 is diff bet ref variable & instance of class
what is difference between object oriented programming structure and object oriented programming system?
Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?
Is the IT field raise again? What is the position of IT after 4 years?
Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?
In an customer exit (include Z) program, only the last record is getting fetched. The exit is getting called after pressing save button. What to write for fetching the first record ? Before saved to a SAP table how can i call all these records in an itab in the exit ?
Define distributed queries. can you explain me as soon as possible
what are resources in case of Threads
how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out
Which design patterns have you used?
I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.