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
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Can a variable be both const and volatile?
Why & is used in c?
Which node is more powerful and can handle local information processing or graphics processing?
What are identifiers and keywords in c?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
What are the basic data types associated with c?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
what is uses of .net
How many levels deep can include files be nested?
Explain low-order bytes.
How can you increase the allowable number of simultaneously open files?
Can you tell me how to check whether a linked list is circular?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
List the variables are used for writing doubly linked list program.