Skip to main content
Search
Search This Blog
learn coding
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
September 13, 2022
Write C program to swap the contents of two integer variables
Write C program to swap the contents of two integer variables
/* To swap values of two integer variables */
#include<stdio.h>
void main()
{
int a, b, c;
printf("Enter two integers\n");
scanf("%d%d",&a, &b);
c=a; a=b; b=c;
printf("After swap a =%d and b=%d\n",a, b);
}
Comments
Popular Posts
September 25, 2022
automate the boring stuff with python book pdf
September 23, 2022
intro to python book (for computer science and data science)pdf download
Comments
Post a Comment