write a program to swap Two numbers without using temp variable.
Answer Posted / amar
void main()
{
int a,b;
printf("enter the two numbers");
scanf("%d%d",&a,&b);
a^=b^=a^=b;
printf("%d%d",a,b);//swapped no
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
which is an algorithm for sorting in a growing Lexicographic order
Why should I prototype a function?
What does printf does?
How many levels of pointers can you have?
how logic is used
Hai what is the different types of versions and their differences
Is it acceptable to declare/define a variable in a c header?
What are the features of c languages?
How can I list all of the predefined identifiers?
What happens if a header file is included twice?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Explain what is the benefit of using enum to declare a constant?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
Explain how can type-insensitive macros be created?
Differentiate between full, complete & perfect binary trees.