#include <iostream>
#include <vector>
int main() {
std::vector<int> V = {1, 5, 4, 33, 0};
// Display number of values stored in V
std::cout << "V has " << std::ssize(V) << " elements.\n";
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter