Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

more information about volatile,constant and static

Status
Not open for further replies.

M.RAMARAO

Newbie level 3
Newbie level 3
Joined
Nov 13, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
16
can anyone provide brief explanation about static,volatile and constant, please.........
 
Last edited:

static, volatile and constant are type of variable storage types.
if you use static storage type then value of this class variable is initially zero and doesn't get re-initilize. and value remains
as it is for out of functions also.

volatile is also initially zero. and normally compiler use most efficient way and optimize the code. but after use of volatile
storage class it warns the compiler don't optimize the code.

constant is use for keep varibles value constant through out the code and if it get try to change some where then it gives
warnings.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top