char *c = new 30;
strcpy(c,"Привет");
PrintStr(c, 6);
PrintStr(c, 30);
C++ (Qt)void SomeFunc( char * c ){...}
C++ (Qt)char* c = new char[100];somFunc(c, 10);somFunc(c+10, 10);somFunc(c+20, 80);delete [] с;
C++ (Qt)somFunc(c+20, 100);