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)

Kuntzmacher
Kuntzmacher
November 6, 2025

0

Total Upvotes

64

Total Views
DngHongNguyn
DngHongNguyn
November 1, 2025

0

Total Upvotes

74

Total Views
OleksandrIvanchuk
OleksandrIvanchuk
October 29, 2025

0

Total Upvotes

63

Total Views
TalhaRahman
TalhaRahman
October 27, 2025

0

Total Upvotes

63

Total Views
HuyHunh
HuyHunh
October 19, 2025

0

Total Upvotes

69

Total Views
JordanSuh
JordanSuh
October 18, 2025

0

Total Upvotes

64

Total Views
TNguynMinh
TNguynMinh
October 18, 2025

0

Total Upvotes

58

Total Views
SaiPrasad
SaiPrasad
October 12, 2025

0

Total Upvotes

68

Total Views
Preenu
Preenu
October 12, 2025

0

Total Upvotes

61

Total Views
SaiBangaram
SaiBangaram
October 9, 2025

0

Total Upvotes

69

Total Views
MoreshwarInamdar
MoreshwarInamdar
October 5, 2025

0

Total Upvotes

53

Total Views
PranavkumarDubey
PranavkumarDubey
September 29, 2025

0

Total Upvotes

74

Total Views
HarryBroeders
HarryBroeders
September 23, 2025

0

Total Upvotes

87

Total Views
sohamrskr
sohamrskr
September 22, 2025

0

Total Upvotes

77

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

Input

5 10

Expected Output

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