Arduino add (behind) values

Well here I am again,

I was wondering how can I add values togeter

values = 1+1; but that would make 2. I want to make it so that the output is 11

Nevermind I figured it out :confused:

Since when does 1 + 1 equal 11? You don't want to add operands, you want to concatenate strings or build a string from characters:

void setup() {
  // put your setup code here, to run once:
  char array[5];
  char a = '1';
  char b = '2';
  char c[] = "1";
  char d[] = "2";

  Serial.begin(9600);
  
  array[0] = a;
  array[1] = b;
  array[2] = NULL;

  Serial.print("First version: ");
  Serial.println(array);

  // Using strings:

  strcpy(array, c);
  strcat(array, d);

  Serial.print("Second version: ");
  Serial.println(array);
}

void loop() {
}