⚠ 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

int B[2][3]

2

4

6

8

10

400

412

B[0][0]

B[0][1]

B[0][2]

B[1][0]

B[1][1]

print(B) or print(&B[0]) - 400 print(B) or print(B[0]) or print(&B[0][0]) - 400 print(B + 1) - 400 + size of 1-D array of integers - 412 print((B+1)) or print(B[1]) or print(&B[1][0]) - 412

B[0] B[1]

int A[5]

A[0] A[1] . .

1-D Array of 3 integers

int

10

+12

B[1][2]

400

404

408

412

416

420

B[0]

B[1]

Compilation Error.

Will return a pointer to 1-D array of 3 integers.

int* p = B

int (*p)[3] = B

will return a pointer to 1-D array of 3 integers.

returning int*

print((B + 1) + 2) or print(B[1] + 2) or print(&B[1][2]) - 420 print((*B + 1)) or print(B[0][1]) - 3

Remember: for 2-D Array

B[i][j] = * (B[i]+ j) = * ( * (B + i) + j)