char data types can only hold a single character. If you compiled the first code segment, the compilation stage will stop an throw an error at you regarding string literals.
Are you trying to build a parser or something? If so, try reading the link I provided[1].