SlideShare a Scribd company logo
Team Emertxe
Pre-Processing
Assignment 2
Assignment 2
Assignment 2
WAP to define a macro swap(t,x,y) that swaps 2 argument
of type t.
Assignment 2
WAP to define a macro swap(t,x,y) that swaps 2 argument
of type t.
Input:
Assignment 2
WAP to define a macro swap(t,x,y) that swaps 2 argument
of type t.
Input: Read choice of date type t from user and read 2 values
of type t
Assignment 2
WAP to define a macro swap(t,x,y) that swaps 2 argument
of type t.
Input: Read choice of date type t from user and read 2 values
of type t
Output:
Assignment 2
WAP to define a macro swap(t,x,y) that swaps 2 argument
of type t.
Input: Read choice of date type t from user and read 2 values
of type t
Output: Swap 2 values of type t and display the values
How will you swap 2 integer numbers?
Assignment 2
How will you swap 2 integer numbers?
 Input: num1 = 10 and num2 = 25
 Output: num1 = 25 and num2 = 10
Assignment 2
10
num1 25
num2
num1 25
num2
10
num1 25
num2
25
num1 num2
10
temp
10
10
Assignment 2
It will work only for 2 integer arguments, so how will
you swap 2 arguments of type t? (t means it can be int,
char, short, float, string or double).
Assignment 2
It will work only for 2 integer arguments, so how will
you swap 2 arguments of type t? (t means it can be int,
char, short, float, string or double).
 Use MACROS.
 Write a Multiline MACRO to swap 2 arguments of type t.
Sample execution:-
Assignment 2
Sample execution:-
Assignment 2
Sample execution:-
Assignment 2
Assignment 2
Pre-requisites:-
Assignment 2
Pre-requisites:-
⮚ Macros
Assignment 2
Pre-requisites:-
⮚ Macros
Objective:-
Assignment 2
Pre-requisites:-
⮚ Macros
Objective:-
⮚ To understand the concepts of Macros in preprocessing
Team Emertxe
Thank you

More Related Content

PDF
Online signature verification using hybrid wavelet transform
PPT
nabil-201-chap-06.ppt
PPT
Variable< Arithmetic Expressions and Input
PDF
Tenser Product of Representation for the Group Cn
PDF
BS LAB Manual (1).pdf
PDF
cel shading as PDF and Python description
PDF
Career Transition (1).pdf
Online signature verification using hybrid wavelet transform
nabil-201-chap-06.ppt
Variable< Arithmetic Expressions and Input
Tenser Product of Representation for the Group Cn
BS LAB Manual (1).pdf
cel shading as PDF and Python description
Career Transition (1).pdf

More from Emertxe Information Technologies Pvt Ltd (20)

Ad

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
Insiders guide to clinical Medicine.pdf
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Microbial disease of the cardiovascular and lymphatic systems
Final Presentation General Medicine 03-08-2024.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Week 4 Term 3 Study Techniques revisited.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Renaissance Architecture: A Journey from Faith to Humanism
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
RMMM.pdf make it easy to upload and study
Insiders guide to clinical Medicine.pdf
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Classroom Observation Tools for Teachers
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Anesthesia in Laparoscopic Surgery in India
VCE English Exam - Section C Student Revision Booklet
Supply Chain Operations Speaking Notes -ICLT Program
01-Introduction-to-Information-Management.pdf
Complications of Minimal Access Surgery at WLH
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial disease of the cardiovascular and lymphatic systems
Ad

02_swap.pdf