{}
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
run-icon
main.cpp
#include <array> #include <iostream> int main() { std::array<int, 5> arr = {1, 2, 3, 4, 5}; std::cout << arr.size(); // ✅ works std::cout << arr.front(); // ✅ first element std::cout << arr.back(); // ✅ last element }
Output