write a program to swap Two numbers without using temp variable.
Answer Posted / nagarjun
main()
{
int a=4,b=5;
/*b=(a+b)-(a=b);*/
a^=b^=a^=b;
printf(" \n %d %d \n",a,b);
}
| Is This Answer Correct ? | 21 Yes | 28 No |
Post New Answer View All Answers
Define VARIABLE?
Write a program to generate random numbers in c?
write a program for the normal snake games find in most of the mobiles.
show how link list can be used to repersent the following polynomial i) 5x+2
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is file in c preprocessor?
What is the use of define in c?
What is typedef?
Where we use clrscr in c?
Which are low level languages?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is getch?
Is c weakly typed?
What is header file definition?
What is the role of && operator in a program code?