Answer the question
In order to leave comments, you need to log in
Why do these variables need to be outside the function?
I'm reading C++ Primer by Stenli Lippman.
The section on constexpr provides such an example.
Please explain why the variables i and j should be taken out of functions?
Although in practice everything works even if the variable i cannot be taken out.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question