Originated from
QueryCAT

Difference b/w global,automatic and static variables

What is a difference between global,automatic and static variables?


Share Send to a friend Watch Report
 
 

2 Posted Answers

 
4623 helpful answers

Love is the battery of life....

Hi,
I am a bit surprised that no one answered:
Global variable = A variable that effects the entire world (as opposed to local variable).....  is not limitted to a specific area / country / continent. 
Automatic variable = A variable that is an automatic result of something else.  One has no control of it, as something happend that veriable is an automatic result. 
Static variable = A variable that doesn't (or very slightly) change with time.  It is static in nature. 
Best regards,

Posted 2008-05-01T11:59:17Z

Sign in to participate

Got an answer for poison? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

How many trun reqiured for mechanic watch

how many trun reqiured for mechanic watch
Submitted by mukesh   2 years ago.
  • viewed 132 times


Q:

Fixed to variable

i bought house in 2008 march for 8.87 intrst rate with 2 yrs fixed .but now intrest r going down. i am thinking to break contract ...
Submitted by gopi   1 year ago.
  • viewed 58 times


Q:

I have a variable annuity where I have 90% in a ...

I have a variable annuity where I have 90% in a conservative - moderate model and 10&% in a fixed model. I am retired and have ...
Submitted by paul   1 year ago.
  • viewed 198 times
Last answer posted 1 year ago by Top Investors



» More...

Be The First To Answser

Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them

» More...

Explore Related Posts in Forums

Where is my variable living -- about static, automatic, new and memory maps...

Non-constant global variables in C/C++. The difference between .data and .bss is that .data So I mentioned in my post about C briefly local and global variables. I hope this post will help For the novice to master. Learn, help, offer or solve problems. Rejoice and make the world a better place. For the complete...

What naming convention do you use for member variables?

MyClass(string n), to make the variable different, but that really stinks IMO. I've done -convention-for-large-scope-function-variables you that it is a member variable though, which can mean the difference between your code working

C++ - What does "Stack automatic" mean?

C++ goes to great lengths to make stack automatic objects work "just like" primitives, as reflected destroyed as a stack automatic." I've done a little C, and C++ code, but just in passing, never anything will not be destroyed until delete is explicitly called on the object. Stack automatic are variables which...
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
ADVERTISEMENT
AOL Autos Q&A is powered by Yedda an AOL Company
Copyright © 2006-2009, Yedda Inc. and respective copyright owners