If i declare buf[32] in function(), it means it will be redeclared everytime i call the function?
In this case would it be better to declare it globally?
Code:void function() { char buf[32] ="Hello"; cout<<buf<<endl; } int main() { for(int i)0;i<10;i++) function(); return 0; }