Q:

Storing a word with double quotes into a char array

How do I store the following into a char array:
AT+CIPSTART="TCP","103.6.157.239","8085"

When I do the following :
char L []="AT+CIPSTART="TCP","103.6.157.239","8085"";

I get an error :

../GPRS.c:48: error: expected ',' or ';' before 'TCP'

A:

Try this
 char c[]="AT+CIPSTART=\"TCP\",\"103.6.157.239\",\"8085\"";

Micro controller escape sequences :

\? for ?
\\ for \
\' for '
\" for "
\b for backspace
\n for new line
\ooo for octal number
\t for horizontal tab
\v for vertical tab
\xxx for hexadecimal number

