It depends what the code is that you posted - laserlight has most likely given you the most appropriate answer.
But anyhow just posting
Code:
string [2];
isn't the most helpful code snippet - for one thing, it is not valid code from a declaration point of view. Therefore it could mean more than one thing. For example, it could be the use of operator[]. e.g.
Code:
const char* string = "Hello world";
std::cout << string[2] << std::endl; //outputs the letter 'l'
Hence, a little more context (like posting the whole line of code) would be useful.
Bookmarks