What is static volatile in c?



What is static volatile in c?..

Answer / Vikul Kumar

In C, 'static' and 'volatile' are storage classes and keywords that have specific meanings for variables. A 'static' variable has a static storage class, which means it persists between function calls. A 'volatile' variable can change during the execution of the program due to events outside the control of the program, such as hardware interrupts.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

largest Of three Number using without if condition?

1 Answers  


How can draw a box in cprogram without using graphics.h header file & using only one printf(); ?

4 Answers   NIIT,


Why & is used in c?

1 Answers  


how to swap two nubers by using a function with pointers?

1 Answers  


how many key words availabel in c a) 28 b) 31 c) 32

1 Answers  


How can my program discover the complete pathname to the executable from which it was invoked?

1 Answers  


Write a program in c to print 1 121 12321 1234321 123454321

11 Answers   ANR, College School Exams Tests, Mu Sigma, Wipro,


what is self refrential structure

3 Answers   HCL,


What is variable initialization and why is it important?

0 Answers  


write a program to display the numbers in the following 4 4 3 3 2 2 1 1 0 1 1 2 2 3 3 4 4

1 Answers  


main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }

1 Answers  


what is the role you expect in software industry?

2 Answers   HCL, Wipro,


Categories