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]) উপাদানের সংখ্যা দেয়, তবে শুধু সেই function-এ যেখানে array declare করা হয়েছে।

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.