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
What is 2c dna?
Explain what standard functions are available to manipulate strings?
The __________ attribute is used to announce variables based on definitions of columns in a table?
Explain how do you determine the length of a string value that was stored in a variable?
Explain about the functions strcat() and strcmp()?
Is there a way to jump out of a function or functions?
What are linker error?
What is I ++ in c programming?
How can you draw circles in C?
can we have joblib in a proc ?
Why is c called c?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
what is recursion in C
Are the outer parentheses in return statements really optional?
What is strcmp in c?