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)

QucCngTrn
QucCngTrn
January 9, 2026

0

Total Upvotes

47

Total Views
DhruvJoshi
DhruvJoshi
January 9, 2026

0

Total Upvotes

38

Total Views
SubhamSarkar
SubhamSarkar
January 7, 2026

0

Total Upvotes

49

Total Views
JohnCena1390
JohnCena1390
January 7, 2026

0

Total Upvotes

43

Total Views
Rajkumar27
Rajkumar27
January 7, 2026

0

Total Upvotes

35

Total Views
BrittChristy
BrittChristy
January 7, 2026

0

Total Upvotes

44

Total Views
avanindrakote
avanindrakote
January 6, 2026

0

Total Upvotes

53

Total Views
SourabS
SourabS
January 5, 2026

0

Total Upvotes

42

Total Views
krishnabhosale
krishnabhosale
January 5, 2026

1

Total Upvotes

53

Total Views
ArjunANS
ArjunANS
January 4, 2026

0

Total Upvotes

35

Total Views
nidishts
nidishts
January 2, 2026

0

Total Upvotes

40

Total Views
D22CQVTNTRANKYHIEP
D22CQVTNTRANKYHIEP
January 1, 2026

0

Total Upvotes

42

Total Views
shravanipatel
shravanipatel
December 30, 2025

0

Total Upvotes

54

Total Views
YevhenShumilov
YevhenShumilov
December 27, 2025

0

Total Upvotes

53

Total Views
kikisdelivery
kikisdelivery
December 27, 2025

0

Total Upvotes

50

Total Views
ShreyasGolasangi
ShreyasGolasangi
December 26, 2025

0

Total Upvotes

39

Total Views
avinpaskalis
avinpaskalis
December 25, 2025

0

Total Upvotes

60

Total Views
SagarMore18011
SagarMore18011
December 24, 2025

0

Total Upvotes

55

Total Views
LiavRotenberg
LiavRotenberg
December 23, 2025

0

Total Upvotes

46

Total Views
VasanthaKumar
VasanthaKumar
December 23, 2025

0

Total Upvotes

42

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

Input

5 10

Expected Output

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