The write() function is trying to write 80 bytes (characters) to the console but you only have about 6 characters available to write(), I would recommend just using the output operator<< instead of write().
i am getting this warning:
F:\c++projects\thispointer\pointerthis.cpp|23|warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]|
replacing char with string doesn't solve the issue.Should i just ignore this warning?