⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’

Excalidraw Data

Text Elements

char C1[6] = “Hello”;

char* C2 = C1;

H

E

L

L

O

\0

GBX

26

25

24

23

22

21

20

20

400

C1

C2

&C1[0]

print C2[1] - e C2[0] = ‘A’ - Aello

C2[i] == *(C2 + i)

Which is same as

C1[i] or *(C1 + i)

C1 = C2; // INVALID C1 = C1 + 1; // INVALID

C2++; // VALID

We need to know when we have array and when we have pointer and what we can do with each other.