Why this also works? A bad Intro to strings in C

Опубликовано: 13 Май 2026
на канале: Oceano
2,447
94

mentioned videos
   • Why This Works   from ‪@tortellini_soup‬
   • Why Does This Work ?   from ‪@ThePrimeagenHighlights‬
   • A Competition for Unreadable Code?   from ‪@lauriewired‬


The theory behind the C quick is already explained there, I don't repeat in this video. The trick also works with strings, as in C strings "barely exist", they are just arrays that will decay into pointers (95% of the times, see standard for array decay for more).