Posts
 
Reputation
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
~2K People Reached
Interests
Web Development
Favorite Forums
Favorite Tags
c x 2
Member Avatar for Bhavesh Nariya

// 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); …

Member Avatar for Oddytech
-3
2K
Member Avatar for Bhavesh Nariya

#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; }

Member Avatar for Hiroshe
0
98