how to swap two integers 1 and 32767 without using third
variable
Answer Posted / riya ganguly
int a=1,b=32767;
a=a+b;
b=a-b;
a=a-b;
printf("a=%d,b=%d",a,b);
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
Why do we need volatile in c?
What is the difference between #include
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
Explain what is the most efficient way to store flag values?
How reliable are floating-point comparisons?
What is restrict keyword in c?
Why is structure padding done in c?
What is meant by int main ()?
What is ctrl c called?
What is a floating point in c?
How does pointer work in c?
Explain what is a pragma?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Explain how do you declare an array that will hold more than 64kb of data?
What is spark map function?