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

2. Pointer vs Reference Swap

Community Submissions (94)

Shazzy
Shazzy
December 21, 2025

0

Total Upvotes

49

Total Views
SwapnilBarot
SwapnilBarot
December 21, 2025

0

Total Upvotes

54

Total Views
SanjayECE
SanjayECE
December 21, 2025

0

Total Upvotes

56

Total Views
HungNguyn
HungNguyn
December 20, 2025

0

Total Upvotes

55

Total Views
Krishnavenipurne
Krishnavenipurne
December 19, 2025

0

Total Upvotes

61

Total Views
MayuriShendre
MayuriShendre
December 19, 2025

0

Total Upvotes

63

Total Views
SARANKUMARM
SARANKUMARM
December 18, 2025

0

Total Upvotes

54

Total Views
keshavverma
keshavverma
December 15, 2025

0

Total Upvotes

66

Total Views
JesseKrigelman
JesseKrigelman
December 1, 2025

0

Total Upvotes

69

Total Views
JordanKechev
JordanKechev
November 28, 2025

0

Total Upvotes

61

Total Views
RomanNikolayenko
RomanNikolayenko
November 27, 2025

0

Total Upvotes

60

Total Views
OmoloroOyegoke
OmoloroOyegoke
November 27, 2025

0

Total Upvotes

60

Total Views
KavyaP
KavyaP
November 23, 2025

0

Total Upvotes

70

Total Views
MahmoudFayedMekki
MahmoudFayedMekki
November 18, 2025

0

Total Upvotes

57

Total Views
PrathmeshKatepallewar
PrathmeshKatepallewar
November 16, 2025

0

Total Upvotes

56

Total Views
tunnguyn
tunnguyn
November 15, 2025

0

Total Upvotes

63

Total Views
DhaivatJoshi
DhaivatJoshi
November 11, 2025

0

Total Upvotes

69

Total Views
HarshvardhanR
HarshvardhanR
November 8, 2025

0

Total Upvotes

63

Total Views
SergSpmreg
SergSpmreg
November 8, 2025

0

Total Upvotes

63

Total Views
DesmondMDsilva
DesmondMDsilva
November 7, 2025

0

Total Upvotes

70

Total Views
12345
Page 4 of 5
94 total submissions
Loading...

Input

5 10

Expected Output

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