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
Plz sent me in .net 2.0 interview Question & answers?
If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this
In JCl , we have COND parameter.This holds comparison code and condition.It also has only and even parameters. ex: COND((4,GE),EVEN).what the comma mean here. is that 'and' or 'or'.
what are all the validation we need to perform in data stage?
code for connection from windows forms to sql server
what is the software to run the GSM gate opener program
Tag for turning an image into a hyperlink is
Find out the list of authorization objects which contains activity as a field? Thanks in advance.
What binary value will be internally stored for NULL for the type S9(1) COMP 3 in mainframe
In project we have Documentation phase also,in that what is micro and macro designing?
What is WEB 3.0? What are the features their in WEB3.0
if 3 duplicate records, by keeping one original and one duplicate record, and how to delete remaining 2 duplicates in sql server 2008
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 ?
Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.
I am work in it aompenei