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 ನಲ್ಲಿ ಮಾತ್ರ.