2022-08-12 14:59:08 +01:00
|
|
|
#include <iostream>
|
2022-08-13 00:34:25 +01:00
|
|
|
|
2022-08-12 14:59:08 +01:00
|
|
|
int main()
|
|
|
|
{
|
2022-08-15 12:40:51 +01:00
|
|
|
//char name[5] = {'t', 'e', 's', 't', '\0'};
|
|
|
|
char name[5] = "test";
|
|
|
|
char* t = name;
|
|
|
|
std::cout << t;
|
|
|
|
t[1] = 'a';
|
|
|
|
t[4] = 'b';
|
|
|
|
std::cout << t;
|
2022-08-15 00:18:23 +01:00
|
|
|
return 0;
|
2022-08-12 14:59:08 +01:00
|
|
|
}
|