[SOLVED] volatile keyword in the function

Status
Not open for further replies.

selva murugesan

Advanced Member level 4
Joined
Mar 30, 2012
Messages
116
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Visit site
Activity points
2,007
hi experts
i have lot of confusion about the volatile keyword used in front of function in c. i asked this question in many peoples, i did not get any satisfaction answer from their answer.
they are simply said you cant access that function from outside of the file.i tried that ,it might be access. i was using codeblocks 12.11 for that.

i want great explanation about this with example.or website name
 

I presume you are not talking about C++. The C standard doesn't specify a usage of the keyword volatile related to functions. Some compilers have language extensions using volatile, e.g. in GCC it commands not to optimize assembler functions.

Where do you see volatile used with functions?
 

yes FVM,

my question was wrong. I was trying to ask about the static function and volatile keyword in c. but I missed the static function in the question.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…