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)

DhruvJoshi
DhruvJoshi
January 9, 2026

0

Total Upvotes

65

Total Views
SubhamSarkar
SubhamSarkar
January 7, 2026

0

Total Upvotes

76

Total Views
JohnCena1390
JohnCena1390
January 7, 2026

0

Total Upvotes

84

Total Views
Rajkumar27
Rajkumar27
January 7, 2026

0

Total Upvotes

63

Total Views
BrittChristy
BrittChristy
January 7, 2026

0

Total Upvotes

96

Total Views
avanindrakote
avanindrakote
January 6, 2026

0

Total Upvotes

95

Total Views
SourabS
SourabS
January 5, 2026

0

Total Upvotes

76

Total Views
krishnabhosale
krishnabhosale
January 5, 2026

1

Total Upvotes

96

Total Views
ArjunANS
ArjunANS
January 4, 2026

0

Total Upvotes

64

Total Views
nidishts
nidishts
January 2, 2026

0

Total Upvotes

69

Total Views
D22CQVTNTRANKYHIEP
D22CQVTNTRANKYHIEP
January 1, 2026

0

Total Upvotes

69

Total Views
shravanipatel
shravanipatel
December 30, 2025

0

Total Upvotes

102

Total Views
YevhenShumilov
YevhenShumilov
December 27, 2025

0

Total Upvotes

91

Total Views
kikisdelivery
kikisdelivery
December 27, 2025

0

Total Upvotes

78

Total Views
ShreyasGolasangi
ShreyasGolasangi
December 26, 2025

0

Total Upvotes

67

Total Views
avinpaskalis
avinpaskalis
December 25, 2025

0

Total Upvotes

102

Total Views
SagarMore18011
SagarMore18011
December 24, 2025

0

Total Upvotes

106

Total Views
LiavRotenberg
LiavRotenberg
December 23, 2025

0

Total Upvotes

71

Total Views
VasanthaKumar
VasanthaKumar
December 23, 2025

0

Total Upvotes

76

Total Views
Shazzy
Shazzy
December 21, 2025

0

Total Upvotes

78

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

Input

5 10

Expected Output

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