<prompt> Araba potso ena ea lenaneo: Phapano ke efe lipakeng tsa static le dynamic array?nan  <response>: Instruction in English: Answer this programming question: What is the difference between a static and a dynamic array? . Response in English: A static array is an array that is declared with a fixed size, meaning that the number of elements it can contain is determined at the time of its declaration and the memory is allocated at compile-time. This size cannot be changed during runtime. Static arrays have a lower memory footprint and are faster in accessing elements since their size and memory location is known at compile time.In contrast, a dynamic array is an array that is initially created with a specific size, but its size can change during runtime as more elements are added or removed from the array. The memory for a dynamic array is allocated at runtime and can grow or shrink as needed. This makes dynamic arrays more flexible compared to static arrays, as they can accommodate more elements without the need to declare a larger array size up-front. However, they have a higher memory footprint and can have slower access times, since the memory location is not necessarily known at compile time and may need to be reallocated when the array grows. . Response in Sesotho: static array ke lethathamo le phatlalatsoang ka boholo bo tsitsitseng, ho bolelang hore palo ea likarolo tseo e ka bang le tsona li khethoa ka nako ea phatlalatso ea eona me memori e abeloa ka nako ea ho bokella. Boholo bona bo ke ke ba fetoloa nakong ea tsebetso. Li-arrays tse tsitsitseng li na le mohopolo o tlase oa mohopolo me li potlakile ho fihlella likarolo kaha boholo ba tsona le sebaka sa mohopolo li tsejoa ka nako ea ho bokella. Ka lehlakoreng le leng, sehlopha se matla ke sehlopha seo qalong se bōpiloeng ka boholo bo itseng, empa boholo ba sona bo ka fetoha nakong ea nako ea ho sebetsa ha likarolo tse ling li eketsoa kapa li tlosoa sehlopheng. Mehopolo bakeng sa dynamic array e abetsoe ka nako ea ho matha me e ka hola kapa ea honyela ha ho hlokahala. Sena se etsa hore li-arrays tse matla li tenyetsehe ha li bapisoa le li-arrays tse sa fetoheng, kaha li ka amohela likarolo tse ngata ntle le tlhoko ea ho phatlalatsa boholo bo boholo ka pele. Leha ho le joalo, li na le mohopolo o phahameng oa mohopolo me li ka ba le linako tsa ho fihlella butle, kaha sebaka sa memori ha se tsejoe ka nako ea ho bokella, me se ka hloka ho fallisoa hape ha sehlopha se ntse se hola. 