I am learning C++ and have got a question that I cannot find the answer to.
What is the difference between a char constant (using single quotes) and a s
where in case of 'a'-> it is single character. so its size would be 1-byte.
char str[]="a";
or
char *ptr = "c";
for 'c' -> char c = 'a';
or we can write as well
char c = 97;