Need Assistance?

support@tutorialshub.in

Arrays & Strings in C

1D Arrays & Memory Layout

ADVERTISEMENT
C Programming Free Lesson
5 min read
ADVERTISEMENT

Arrays store elements contiguously in memory. Compute array length with sizeof(arr) / sizeof(arr[0]) (inside the scope where the array was declared).

ADVERTISEMENT
Hi, I'm Tuby! Here to help you