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)

KanishqChandran
KanishqChandran
February 24, 2026

0

Total Upvotes

23

Total Views
deveshgiri
deveshgiri
February 23, 2026

0

Total Upvotes

30

Total Views
ekremkayaa
ekremkayaa
February 23, 2026

0

Total Upvotes

47

Total Views
annnguyen2210022
annnguyen2210022
February 23, 2026

0

Total Upvotes

42

Total Views
johnvaspoul
johnvaspoul
February 23, 2026

0

Total Upvotes

40

Total Views
SelmanCetin
SelmanCetin
February 22, 2026

0

Total Upvotes

40

Total Views
KhalidNezami
KhalidNezami
February 22, 2026

0

Total Upvotes

30

Total Views
Kundurugopikrishna
Kundurugopikrishna
February 21, 2026

0

Total Upvotes

43

Total Views
ShankargoudMarigoudra
ShankargoudMarigoudra
February 20, 2026

0

Total Upvotes

45

Total Views
anhkitnguynhunh
anhkitnguynhunh
February 18, 2026

0

Total Upvotes

34

Total Views
MOHITVANZARA
MOHITVANZARA
February 16, 2026

0

Total Upvotes

34

Total Views
RichaSurbhi
RichaSurbhi
February 16, 2026

0

Total Upvotes

31

Total Views
ahmedgarnousy76
ahmedgarnousy76
February 15, 2026

0

Total Upvotes

44

Total Views
toygarzel
toygarzel
February 15, 2026

0

Total Upvotes

32

Total Views
AhnafShariar
AhnafShariar
February 14, 2026

0

Total Upvotes

32

Total Views
MickeyMouse
MickeyMouse
February 10, 2026

0

Total Upvotes

43

Total Views
chiendt950
chiendt950
February 10, 2026

0

Total Upvotes

60

Total Views
MarcoSllinger
MarcoSllinger
February 8, 2026

0

Total Upvotes

48

Total Views
KellyDempster
KellyDempster
February 8, 2026

0

Total Upvotes

55

Total Views
JPGGabriel
JPGGabriel
February 8, 2026

0

Total Upvotes

54

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

Input

5 10

Expected Output

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