Computer Science, asked by tehminabibi645, 8 months ago

write a program that input two integer in main( ) function and pass the integer to a function by reference .the function sweps the value . the main( ) function should display the value before and affter swapping?​

Answers

Answered by shanuraj4137
1

Answer:

Given two numbers, write a C program to swap the given numbers.

Input : x = 10, y = 20;

Output : x = 20, y = 10

Input : x = 200, y = 100

Output : x = 100, y = 200

hope it's helpful

Similar questions