Lesson 11 of 23
Arrays
9 min 25 XP
Array ഒരേ type-ലുള്ള values തുടർച്ചയായ memory-യിൽ സൂക്ഷിക്കുന്നു. Indexes 0-ൽ തുടങ്ങുന്നു. C പരിധികൾ പരിശോധിക്കുന്നില്ല: 5 ഘടകങ്ങളുള്ള array-യിൽ a[10] എഴുതിയാൽ memory കേടാകും, ശ്രദ്ധിക്കുക!
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.sizeof(arr) / sizeof(arr[0]) ഘടകങ്ങളുടെ എണ്ണം നൽകുന്നു, പക്ഷേ array declare ചെയ്ത function-ൽ മാത്രം.