swap two integer variables without using a third temporary
variable?
Answer Posted / sumit salve
a=a+b-(b=a);
or
a=a*b/(b=a);
this will also swap two numbers!!!
Thank You...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between call by value and call by reference in c?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
How can you find the exact size of a data type in c?
Explain the difference between malloc() and calloc() function?
What does c value mean?
How can you convert integers to binary or hexadecimal?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What is file in c preprocessor?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is nested structure?
Are enumerations really portable?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Is malloc memset faster than calloc?
What is main () in c language?