Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
0 Endorsements
Ranked #72.8K
2 Posted Topics
// Program to show swap of two no’s without using third variable #include<stdio.h> #include<conio.h> void main() { int a, b; printf("\nEnter value for num1 & num2 : "); scanf("%d %d", &a, &b); a=a+b-(a=b); //Swaping printf("\nAfter swapping value of a : %d", a); printf("\nAfter swapping value of b : %d", b); … | |
#include <stdio.h> int main() { int x = 10, y = 5; // Code to swap 'x' and 'y' y=x+y-(x=y); printf("After Swapping: x = %d, y = %d", x, y); return 0; } |
The End.