Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHow to find memory location of static linked variables with equal names
Hi all, A simple example uses two static variables named "aa": static int told=0;
...
start_endless_loop: //------------- endless loop
if (alt_nticks() > told) {
told = alt_ntic...
Altera_Forum
Honored Contributor
10 years agoThe best solution is 'don't do it'.
Reusing a variable name in an inner scope is a very good way to introduce subtle bugs into your code.