Can't store a single double quote (or ") as a single character in char array

Hi all,

I'm trying to store a single double quote (") as a character in a character array. Something like this:

void setup() {
  // put your setup code here, to run once:
  Serial.begin (9600);
  char digitNumberChar2 [100];
  digitNumberChar2 [0] = "\"";
  Serial.println (digitNumberChar2 [0]);

}

void loop() {
  // put your main code here, to run repeatedly:

}

But it does not seem to work.

Any guidance is much appreciated.

char c = '\\';
char s[] = "hello\\";

Regards,
Ray L.

RayLivingston:

char c = '\\';

char s[] = "hello\";




Regards,
Ray L.

Hi Ray,

My apologies, I think my question title was unclear. I fixed it.

Actually, from your post I figured it out. Thank you!

It's '"'