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)

DavidJiachenLiu
DavidJiachenLiu
April 15, 2026

0

Total Upvotes

0

Total Views
ECE1012ANIKETSHAW
ECE1012ANIKETSHAW
April 13, 2026

0

Total Upvotes

1

Total Views
samiranrabha
samiranrabha
April 12, 2026

0

Total Upvotes

4

Total Views
TTSBKVThiSn
TTSBKVThiSn
April 11, 2026

0

Total Upvotes

4

Total Views
ChadAssoya
ChadAssoya
April 11, 2026

0

Total Upvotes

5

Total Views
JoelAlvarez
JoelAlvarez
April 11, 2026

0

Total Upvotes

5

Total Views
inamrehmancowlar
inamrehmancowlar
April 10, 2026

0

Total Upvotes

4

Total Views
TrngTrnhHng
TrngTrnhHng
April 9, 2026

0

Total Upvotes

5

Total Views
Linh
Linh
April 6, 2026

0

Total Upvotes

8

Total Views
JAIWANTD
JAIWANTD
April 5, 2026

0

Total Upvotes

11

Total Views
TrnHuV
TrnHuV
April 4, 2026

0

Total Upvotes

10

Total Views
harishrajendran324
harishrajendran324
April 2, 2026

0

Total Upvotes

10

Total Views
DucKhanhVu
DucKhanhVu
March 31, 2026

0

Total Upvotes

14

Total Views
AmanGhasti
AmanGhasti
March 30, 2026

0

Total Upvotes

17

Total Views
ShivV
ShivV
March 30, 2026

0

Total Upvotes

10

Total Views
HuyMinh
HuyMinh
March 27, 2026

0

Total Upvotes

15

Total Views
BhagyeshAgresar
BhagyeshAgresar
March 27, 2026

0

Total Upvotes

19

Total Views
TntNguyn
TntNguyn
March 26, 2026

0

Total Upvotes

14

Total Views
shreyassathe04
shreyassathe04
March 26, 2026

0

Total Upvotes

19

Total Views
mragul164
mragul164
March 26, 2026

0

Total Upvotes

16

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

Input

5 10

Expected Output

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