You can only make variable pointing to array volatile. If array is changed by replacing individual elements then guarantee provided by volatile variable will not be held.
Previous Question Next Question
Your comments will be displayed only after manual approval.