[code]#include <stdio.h>
#include <iostream.h>
int main(int argc, char *argv[])
{
char *p = "abc";
cout << p << endl; // abc
cout << p+1 << endl; // bc
cout << *p << endl; // a
cout << *(p+1) << endl; // b
return 0;
}
[/code]
#include <iostream.h>
int main(int argc, char *argv[])
{
char *p = "abc";
cout << p << endl; // abc
cout << p+1 << endl; // bc
cout << *p << endl; // a
cout << *(p+1) << endl; // b
return 0;
}
[/code]