#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;
}
Bhavesh Nariya 0 Newbie Poster
Hiroshe 499 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.