Question: A 5 6 - WAP to define a macro swap ( t , x , y ) that swaps 2 arguments of type t Due
A WAP to define a macro swap t x y that swaps arguments of type t
Due date: Monday, July : PM
Requested files: swap.c Download
Type of work: Individual work
Description:
Implement swap concept with the help of macro
The type of arguments to swap will be passed as t
swap int x y where x and y are of types int.
Prrequisites:
Macros
Objective:
To understand the concept of
Macros in preprocessing
Note: You don't have to evaluate this assignment. Just submit it For your reference, you can run the code
Inputs:
Integers N and N
Sample execution:
Test Case :
user@emertxeswap
Int
char
short
float
double
string
Enter you choice :
Enter the num :
Enter the num :
After Swapping :
num :
num :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
