If i have an array and i want to fill this array by default value = 5
I made it like that.
Can i made it by another way !?
C++
array arr ;
arr.fill(5);If i have an array and i want to fill this array by default value = 5
I made it like that.
Can i made it by another way !?
array arr ;
arr.fill(5);Know the answer? Post it. Somebody with the same question will find it here.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jun 24, 2021, 8:03 AM EDT