Uh...that doesn't make much sense, at least at first.
The variable "bar" in void foo(int bar) is a parametre for the function. Thus, apparnetly, by using a pointer you could make it public (I think) but there's not much point when you can just use a public variable and use the function to change that.
Bookmarks