answersLogoWhite

0

A program in c for swapping?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

This is not a question.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: A program in c for swapping?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the meaning of swapping in c?

Swapping has nothing to do with programming languages.


C program to swapping two numbers using call by value method?

You have to pass the address of the variables.void swap (int *pa, int *pb){...}


What is swap in c?

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


A program to swap values using pass by value?

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


What is the purpose of swapping?

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?

c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.


Features of c program?

the features of a C program


What is executive a c program?

I think it is 'execution of a C program'.


C program to swap three variables?

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


C program on left factoring in compiler design?

how to create a c program for left factoring.


Is page swapping the same as thrashing?

Page Swapping is not the same as Thrashing. Thrashing is the significant degradation of performance caused by overuse of a computers resource, most commonly virtual memory. Page Swapping is a normal memory management function of most Operating Systems. It occurs any time a computer is running. Thrashing most often takes the form of too much Page Swapping. That occurs when a program needs more virtual memory than the computer can provide at the moment and pages of memory are moved on and off the disc so often that the program running cannot progress in its function. Thrashing is, therefore, not equivalent to Page Swapping and vice versa.


Differences between swapping and overlays?

1. In overlays there is no need for the whole program to reside in main memory .here if say if a program has two functions say f1(50k) and f2(70k) such that they are in mutual exclusion with each other then, the memory of only 70k will be allocated for both the functions and the one that is needed at a particular moment can reside in the main memory . this even saves the memory ,But it is not in case of swapping . here the whole program needs to reside in main memory 2. overlays require careful and time consuming planning while in swapping it is not needed 3. swapping needs to issue system calls for requesting and releasing memory which is not in case of overlays