EWskill Home
C++ for Embedded Systems
topic_iconimage
C++ for Embedded Systems
Loading...
Task
Discussion
Submissions
Solution

2. Pointer vs Reference Swap

Community Submissions (133)

SwapnilBarot
SwapnilBarot
December 21, 2025

0

Total Upvotes

90

Total Views
SanjayECE
SanjayECE
December 21, 2025

0

Total Upvotes

86

Total Views
HungNguyn
HungNguyn
December 20, 2025

0

Total Upvotes

84

Total Views
Krishnavenipurne
Krishnavenipurne
December 19, 2025

0

Total Upvotes

82

Total Views
MayuriShendre
MayuriShendre
December 19, 2025

0

Total Upvotes

95

Total Views
SARANKUMARM
SARANKUMARM
December 18, 2025

0

Total Upvotes

77

Total Views
keshavverma
keshavverma
December 15, 2025

0

Total Upvotes

94

Total Views
JesseKrigelman
JesseKrigelman
December 1, 2025

0

Total Upvotes

89

Total Views
JordanKechev
JordanKechev
November 28, 2025

0

Total Upvotes

94

Total Views
RomanNikolayenko
RomanNikolayenko
November 27, 2025

0

Total Upvotes

83

Total Views
OmoloroOyegoke
OmoloroOyegoke
November 27, 2025

0

Total Upvotes

89

Total Views
KavyaP
KavyaP
November 23, 2025

0

Total Upvotes

101

Total Views
MahmoudFayedMekki
MahmoudFayedMekki
November 18, 2025

0

Total Upvotes

83

Total Views
PrathmeshKatepallewar
PrathmeshKatepallewar
November 16, 2025

0

Total Upvotes

80

Total Views
tunnguyn
tunnguyn
November 15, 2025

0

Total Upvotes

89

Total Views
DhaivatJoshi
DhaivatJoshi
November 11, 2025

0

Total Upvotes

96

Total Views
HarshvardhanR
HarshvardhanR
November 8, 2025

0

Total Upvotes

93

Total Views
SergSpmreg
SergSpmreg
November 8, 2025

0

Total Upvotes

87

Total Views
DesmondMDsilva
DesmondMDsilva
November 7, 2025

0

Total Upvotes

93

Total Views
Kuntzmacher
Kuntzmacher
November 6, 2025

0

Total Upvotes

99

Total Views
1234567
Page 6 of 7
133 total submissions
Loading...

Input

5 10

Expected Output

After swapPtr: a=10 b=5 After swapRef: a=10 b=5