Very stupid question, but I can’t find a solution, probably it’s so obvious that no one writes about it,

Serial.println('data: '.CONSTANTA); // Не работает Serial.println('data: '+CONSTANTA); // Похоже вообще сложение байт 

How to stitch two lines then?

Closed due to the fact that off-topic participants Alexei Averchenko , aleksandr barakin , Alexey Shtanko , Athari , PashaPash Jun 10 '15 at 20:17 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "Questions asking for help with debugging (" why does this code not work? ") Should include the desired behavior , a specific problem or error, and the minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, complete, repeatable example . " - Alexei Averchenko, aleksandr barakin, Alexey Shtanko
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • and 'Serial.println' is exactly with? is it not with ++ / CLI? and is CONSTANTA an accident not a number? - KoVadim
  • one
    Yes, there is not even a line. One not very valid symbol and something else unknown. C is not pascal and not php. - Qwertiy
  • one
    Where is C? What is Serial.println ? Since when did 'data: ' become a line in C? - AnT
  • Read The C Programming Language by Kernigan and Richie - Alexei Averchenko
  • I vote for closing this question as not relevant, because the question is clearly not for C, but for some other unknown language - PashaPash

3 answers 3

Only create a new array of sufficient size and copy them there in turn, here is an example.

    How to stitch two lines then?

    See use strncat () here.

      Not quite clear question. You ask how to connect the two strings, and give an example for outputting the string and the variable. If you need to connect the strings, then read about strcat (), and the output of the string and the variable can be done using printf ().