
please wait
|
|
charval = 12
is valid code."hello"
, "\n"
) are aliases for pointers. Adding a pointer to an integer type has (for programmers new to C) surprising results. I won't go into the details of the semantics of charval + "\n"
(if you're interested, google "pointer arithmetic"), but suffice it to say that it's not string concatenation.unistd::write(portArr[0], "\x0C\n\xDC\n", 10);