swap two integer variables without using a third temporary
variable?
Answer Posted / vignesh1988i
the best way what i choose is that : if x=89 , y=-88
x^=y^=x^=y;
this line will swap the above numbers......
thank u
Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
Explain how do you sort filenames in a directory?
How are Structure passing and returning implemented by the complier?
How many parameters should a function have?
How is a null pointer different from a dangling pointer?
while initialization of array why we use a[][2] why not a[2][]...?
How would you rename a function in C?
What are register variables? What are the advantage of using register variables?
Which is best book for data structures in c?
What is the difference between declaring a variable and defining a variable?
What is d'n in c?
Are the expressions * ptr ++ and ++ * ptr same?
What is c variable?
What is modifier & how many types of modifiers available in c?
Is there any data type in c with variable size?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }