how to swap two integers 1 and 32767 without using third
variable
Answers were Sorted based on User's Feedback
Answer / susmita dutta chowdhury
b=(a+b)-(a=b);
printf("%d %d ",a,b);
explanation:-
b=(1+32767)-(a=32767)
b=32768-32767
b=1
a=32767
| Is This Answer Correct ? | 0 Yes | 0 No |
What does do in c?
What is the relationship between pointers and data structure?
What is else if ladder?
Is r written in c?
What are pointers? What are stacks and queues?
What is the hardest programming language?
What is the scope of static variables in c language?
What are 'near' and 'far' pointers?
Is main an identifier in c?
What are the main characteristics of c language describe the structure of ac program?
Ca some one please help me with aC code to allow user enter numbers from 1 to 20 without repeating and prnt the sum of those numbers thnx
diff .between strcture and union