google407ec42f1ae5ff0e.html
top of page

write a c program to swap the value of two variable

#include<stdio.h>

void main()

{

int a=8,b=7,temp;

printf("a=%d, b=%d\n",a,b);

temp=a;

a=b;

b=temp;

printf("a=%d, b=%d\n",a,b);

getch();

}

6 views0 comments

Recent Posts

See All

Comentarios


bottom of page