04
Nov
Static volatile const int x=1 valid ?
Related Blog Items
- Constant and Volatile
- C/C++ Questions asked in various job interviews
- What's the difference between "const X* p", "X* const p" and "const X* const p"?
- Advanced Test in C: The 0x0A Best Questions for C Programmers
- How is "const correctness" related to ordinary type safety?
Yes, x can be changed by system without compilers knowledge, but x cant be modified by program explicitly, and xs scope is limited to that file if x is declared
Outside a function, if it is inside its value will be retained between function calls.
This variable will be stored in data section.
Popularity: 19%
You need to log on to convert this article into PDF
Related Blog Items - Constant and Volatile
- C/C++ Questions asked in various job interviews
- What's the difference between "const X* p", "X* const p" and "const X* const p"?
- Advanced Test in C: The 0x0A Best Questions for C Programmers
- How is "const correctness" related to ordinary type safety?
Related Blog Items
- Constant and Volatile
- C/C++ Questions asked in various job interviews
- What's the difference between "const X* p", "X* const p" and "const X* const p"?
- Advanced Test in C: The 0x0A Best Questions for C Programmers
- How is "const correctness" related to ordinary type safety?
No Comments
No comments yet.