MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / main

Function main

10.04-stdArrayVsCArray0/main.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <cstddef>
6
7int main()
8{
9 const char cArray[]{"Hello, C++20"}; // #A Compiler deduces the size
10 // #B We need to specify the size
11 const std::array<char, 13> array{"Hello, C++20"};
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected