Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a void function named swap that receives 2 integers and swap them. The swapped integer values must be printed in the main function. Example:
Write a void function named swap that receives 2 integers and swap them.
The swapped integer values must be printed in the main function.
Example: If x=2 and y=5 , after calling the function swap x will be 5 and y will be 2.
note: the program should be in
#include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started