answersLogoWhite

0


Best Answer

swap (int *a, int *b) {

*a ^= *b;

*b ^= *a;

*a ^= *b;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to swap two numbers using function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a program that read phrase and print the number of lower-case letter in it using function of counting?

write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program


How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


Write a c program for matrix addition using function?

#include<


How do you write an assembly language program to find the sum of n numbers using array?

write an assembly language program to find sum of N numbers


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


Can you write a program without using any semicolon inside the main function?

not possible dude


Write a Program to convert decimal number into hexadecimal no without using function and string?

This is not a question.


Write a program to calculate the area of a cylinder using a function?

give an example of calculation of mathematics


Write a program to find the product of two numbers using Halving and Doubling method?

i need this answer


Write a program large number and small number among n numbers by using If statement?

12


How do you write a c program to find area of rectangle using function?

There will be a function in it like this: double RectangleArea (double a, double b) { return a*b; }


How do you write a program using function that counts the number of vowels in a string in java language?

Use text-editor notepad++