answersLogoWhite

0

What is meant by swapping of variables?

Updated: 8/19/2019
User Avatar

Wiki User

12y ago

Best Answer

It means that you swap the values of that variables

EX:

-==-

before swapping :-

Variable1 = 5;

variable2 = 10;

after swapping :-

Variable1 = 10;

variable2 = 5;

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is meant by swapping of variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the advantage of swapping two variables without using 3 variable?

Nothing. Never do that.


How we can get address of variables in Java as pointer variables in C?

At any given point of time you cann't get the address of a variables of java program. This is meant for security purpose only.


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.


What is meant by pointers in c language?

Variables (or constants) that contain addresses.


What is meant by variables?

A variable is a characteristic which can change from one observational unit to another.


What is the meaning of swapping in c?

Swapping has nothing to do with programming languages.


Write C coding for swamping the values of two variables without using a third variable?

I'll assume you meant to say: Swapping instead of Swamping. You would need to perform the XorSwap algorithm: void XorSwap(int *x, int *y) { if(x != y) { *x ^= *y; *y ^= *x; *x ^= *y; } } You can read more about this algorithm on Wikipedia.


Compare and contrast variables and constants?

In Computer Programming and Mathematics, variables and constants are ways to refering to a value. For example X=1 and Y=2 The difference being, variables are meant to be arbitary and changable, while constants are meant to be fixed and unchangable. For example, there is no reason for the value of Pi to change. So the value of Pi would best be represented by a constant.


Is there ever a point on the equation 2y3x where both variables are integers?

Sorry, I meant 2^y=3x


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


What is meant by signal?

A signal is defined as a the physical quantity that varies with time, space or any other indepenent variables.


What is meant by the term hondata?

Hondata is an American company offering chip tuning for Honda vehicles to improve their power. They also do engine swapping and reprogramming ECUs (engine control units).