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-ൽ മാത്രം.

Challenge

+25 XP

n-ഉം n വ്യത്യസ്ത സംഖ്യകളും വായിച്ച് രണ്ടാമത്തെ വലിയ സംഖ്യ print ചെയ്യൂ. Input: 5 3 8 1 9 4 Output: 8

Output Loading C (first time takes a few seconds)
Press Run to see the result here.