MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1r23o9z/array_is_syntax_error/o528vwu/?context=3
r/programminghumor • u/[deleted] • Feb 11 '26
46 comments sorted by
View all comments
Show parent comment
2
Pointer arithmetic in C will automatically do the sizeof math.
Assuming arr is a T[] then arr[5] is literally definitionally equal to *(arr + 5) in all contexts
View all comments
Show parent comment
2
u/realestLink Feb 12 '26
Pointer arithmetic in C will automatically do the sizeof math.
Assuming arr is a T[] then arr[5] is literally definitionally equal to *(arr + 5) in all contexts