Q:

What does the following program do

0

What does the following program do?

map<int, int> m;
m[0] = 1;

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The code adds a new key `0` to the map `m` and value initializes its value to 0, then assigns 1 to its value.

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now