This is not a question.
Swapping has nothing to do with programming languages.
You have to pass the address of the variables.void swap (int *pa, int *pb){...}
swapping is nothing but interchanging the values of a given character for example : if a=5 , b=4 before swapping then it becomes a=4,b=5 after swapping
#include<conio.h> main() { int a,b; scanf("%d%d",&a,&b); printf("Before swapping A= %d B=%d",a,b); swap(a,b); getch(); } void swap(int a,int b) { int c; c=a; a=b; b=c; printf("After swapping A= %d B=%d",a,b); }
Would you like to take part in a house swapping program?
Swapping was an older form of memory management. It was moving from/to secondary storage a whole program at a time, in a scheme known as roll-in/roll-out. Now swapping is a fairly close synonym of paging.
c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.
the features of a C program
I think it is 'execution of a C program'.
Thrashing in C refers to excessive swapping of data between RAM and virtual memory, significantly slowing down the system due to the high overhead involved in managing memory. It typically occurs when a program doesn't have enough physical memory and constantly swaps data in and out of virtual memory.
#include<stdio.h> #include<conio.h> void main() { int a=2,b=3; swap(a,b); printf("%d%d",a,b); getch() } swap(int *x,int *y) { int t; t=*x; *x=*y; *y=t; printf("%d%d",x,y); }
how to create a c program for left factoring.