Learn C Programming

lesson ২ / ৯ · Structure, union আর enum

Module ১২ · Structure, union আর enum

struct-এর array, আর function-এ struct

Account থাকলেই freeপড়া

Amara একটা ক্লাস পড়ায়, আর প্রত্যেক student-এর আছে একটা নাম আর তিনটা নম্বর। Lesson 1 ওকে একজন student-এর জন্য একটা struct দিয়েছে। এবার ও পুরো ক্লাসটা notice board-এ টাঙাতে চায়, যার total সবচেয়ে বেশি, সে সবার উপরে।

আপনার জন্য এই lesson টা খোলা কি না দেখা হচ্ছে…

struct-এর array, আর function-এ struct এর ভেতরে কী আছে

  1. Struct-এর array: capacity আর count
  2. Input থেকে n-টা record পড়া
  3. Field দিয়ে record খোঁজা
  4. Record sort করা: পুরো struct সরাও
  5. Bob-এর sort একটাই field সরায়
  6. Function-এ পাঠানো struct একটা copy
  7. Function থেকে struct return করা