Skip to main content
added 3 characters in body
Source Link

QuotesOk, first, char varAT[12] indicates an array of 12 characters.

Second, quotes indicate literals - 'A' means, literally, the character 'A'. Variables and constants are without quotes (same way you use i).

I think you mean:

char *varAT[12]={A,B....};

Also, your constant B is invalid - I think you meant for it to end in \r", not \".

Quotes indicate literals.

I think you mean:

char *varAT[12]={A,B....};

Ok, first, char varAT[12] indicates an array of 12 characters.

Second, quotes indicate literals - 'A' means, literally, the character 'A'. Variables and constants are without quotes (same way you use i).

I think you mean:

char *varAT[12]={A,B....};

Also, your constant B is invalid - I think you meant for it to end in \r", not \".

added 3 characters in body
Source Link

Quotes indicate literals.

I think you mean:

char varAT[12]=*varAT[12]={A,B....};

Quotes indicate literals.

I think you mean:

char varAT[12]={A,B....};

Quotes indicate literals.

I think you mean:

char *varAT[12]={A,B....};
Source Link

Quotes indicate literals.

I think you mean:

char varAT[12]={A,B....};