answersLogoWhite

0


Best Answer

int a,b;

a=a+b;

b=a-b;

a=a-b;

that's it simple

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do we write c program without using swap to interchange values by accessing another variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Difference between numeric constants and numeric variables in qbasic?

A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...


Program in c using pointers to interchange 2 values without using third variable?

swap (int *pa, int *pb) { *pa ^= *pb; *pa ^= *pa; *pa ^= *pb; }


How do you determine the processing time of a java insertion sort program?

You store the starting time to a variable, run the process, store the end time to another variable, then subtract.


What is the difference between Do While statements and Do For statements?

A "do while....." statement is a looping instruction to a program to repeat a stage in the program while some condition is true - e.g while a variable is negative, or, while one variable is less than another. A "do for ....." statement is a looping instruction to a program to repeat a stage in the program a set number of times - e.g for steps = 1 to 10, or, for steps = 1 to (some variable).


How do pointer work in c program?

Pointer can be defined as variable that is used to store memory address , usually the location another variable in memory. Pointers provide a means through which memory location of a variable can be directly accessed.


What is a back door?

A program or set of instructions in a program that allow users to bypass security controls when accessing a program, computer, or network


What is back dooring?

A program or set of instructions in a program that allow users to bypass security controls when accessing a program, computer, or network


What is a global declaration?

A global declaration of a function or variable is a declaration that is at the global scope of the program, not inside another function. This means that the name will be visible within all functions in the program.


If the variable flag can only be declared once in the program it was declared as what type of variable?

It's a global variable.


What kind of software is Logmein?

It is a remote access program provider. It basically allows you to control computers remotely from another computer.It useful for accessing files from your computer from somebody else's easily.


What is a variable used in computer gaming?

it depends, if its a desired variable, its a program, but if its undesired, its a glitch


How do you program a hayward variable speed pool pump?

how to program a pool vacuum