char str[ ]=”NOCONFUSION”;//This is c style string declaration cout<<*str<<*(&str[2])<<endl;
Here *str will print the first character N and *(&str[2]) will print value at address of second character which is character C
cout.write(str,2)<<endl;
This will simply write 2 characters starting from first character which is NO.
cout.write(str+2,9)<<endl;
This will display 9 characters from second point in str pointer which is CONFUSION.