How can I swap two values without using a temporary?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What are the __date__ and __time__ preprocessor commands?

0 Answers  


What is the benefit of using const for declaring constants?

0 Answers  


Why do we use return in c?

0 Answers  


what is use of malloc and calloc?

0 Answers  


What is this infamous null pointer, anyway?

0 Answers  






/*what is the output for the code*/ void main() { int r; r=printf("naveen"); r=printf(); printf("%d",r); getch(); }

1 Answers   CDAC,


Difference between constant pointer and pointer to a constant.

0 Answers   Huawei,


Whats s or c mean?

0 Answers  


wat are the two methods for swapping two numbers without using temp variable??

2 Answers  


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

0 Answers   KPIT,


What is a constant?

0 Answers  


What is a good way to implement complex numbers in c?

0 Answers  


Categories