char str[] = "This is OOP244";char* s;s = &str[8]; // points to the first 'O' in OOP244cout << *(s + 3) << endl; // displays 244
No comments:
Post a Comment