how to swap 4 number without using temporary number?
Answers were Sorted based on User's Feedback
Answer / brinda balakrishnan
a=a+b+c+d;
b=a-(b+c+d);
c=a-(b+c+d);
d=a-(b+c+d);
a=a-(b+c+d);
| Is This Answer Correct ? | 25 Yes | 0 No |
What are the disadvantages of external storage class?
How do c compilers work?
In a byte, what is the maximum decimal number that you can accommodate?
what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year
What is keyword with example?
What is the use of bitwise operator?
how to find the kth smallest element in the given list of array elemnts.
What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is the newline escape sequence?
How can I read a binary data file properly?
how many times of error occur in C