Your first code value initializes a char (a) to the value of '1', or 49. The second code sets the value of a new char (a) to 1 (notice the number one, not the letter), or the symbol ☺.
You could just check this by in both cases "cout"ing the value of "a" and seeing what you get.
P.S. Don't use void main(), its non standard, use int main() instead.