Static Variables?

I am sorry. I have another (archived) thread started by myself for this particular topic. I cannot continue that because it is archived.

Could anyone please elaborate in detail the mystery of "static" and "volatile" variables?

And what is an "instance" of a variable?

Thank you.
Last edited on
Also, I think I will have to use the mentioned keywords in C. If there is a change in meaning with reference to the context (C vs. C++), please let me know so I can follow up.
closed account (DSLq5Di1)
Surprisingly so, there is an article on wikipedia for each of your questions.

http://en.wikipedia.org/wiki/Static_variable
http://en.wikipedia.org/wiki/Volatile_variable
http://en.wikipedia.org/wiki/Instance_variable
I forgot to mention, but I have already gone through those topics.
As surprising as it may be, I am still the same ignorant person that I was.

I have two very short questions that I expect very long answers to.

- Why?
- How?

If anyone can provide the answers, I'll be grateful.
Topic archived. No new replies allowed.