0
Where should variable should declare
2 Respuestas
+ 10
you can declare variables in functions,scopes e.t.c
https://www.sololearn.com/learn/CPlusPlus/1606/
+ 1
In cpp, you can declare a variable anywhere you want,
remember declare it prior to using anywhere in the code.
also do keep in mind, a variable declared in a local scope has no existence outside the scope.