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)

JPGGabriel
JPGGabriel
February 8, 2026

0

Total Upvotes

18

Total Views
eshalshaikh
eshalshaikh
February 6, 2026

0

Total Upvotes

21

Total Views
KamilJ
KamilJ
February 6, 2026

0

Total Upvotes

24

Total Views
ChitranshDamedhar
ChitranshDamedhar
February 5, 2026

0

Total Upvotes

20

Total Views
gayan
gayan
February 3, 2026

0

Total Upvotes

21

Total Views
HongQunNguynB
HongQunNguynB
February 1, 2026

0

Total Upvotes

25

Total Views
ShyamMulla
ShyamMulla
January 28, 2026

0

Total Upvotes

27

Total Views
HansLanghoff
HansLanghoff
January 22, 2026

0

Total Upvotes

43

Total Views
patilabhishek2903
patilabhishek2903
January 21, 2026

0

Total Upvotes

35

Total Views
JAMEELSAMEER
JAMEELSAMEER
January 19, 2026

0

Total Upvotes

23

Total Views
FunnyPantsYT
FunnyPantsYT
January 19, 2026

0

Total Upvotes

37

Total Views
IdoS
IdoS
January 18, 2026

0

Total Upvotes

26

Total Views
ArunKR
ArunKR
January 17, 2026

0

Total Upvotes

38

Total Views
LcTonB21DCVT420
LcTonB21DCVT420
January 17, 2026

0

Total Upvotes

32

Total Views
AndriasMatheus
AndriasMatheus
January 17, 2026

0

Total Upvotes

32

Total Views
Sujit
Sujit
January 16, 2026

0

Total Upvotes

38

Total Views
Hip
Hip
January 15, 2026

0

Total Upvotes

40

Total Views
SayantanKundu
SayantanKundu
January 15, 2026

0

Total Upvotes

37

Total Views
MunilohithG
MunilohithG
January 11, 2026

0

Total Upvotes

45

Total Views
MusaabTaha
MusaabTaha
January 10, 2026

0

Total Upvotes

50

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

Input

5 10

Expected Output

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