+ 1

What Is Difference Between 'a' and "a"

Explain me Please In Deep !

23rd Jun 2019, 11:05 AM
Mr. Nothing
Mr. Nothing - avatar
6 Respuestas
+ 8
Depends on the language, so it would be a good idea to let us know what language you're talking about
23rd Jun 2019, 12:26 PM
Anna
Anna - avatar
+ 3
'a' is a character constant and stored as numeric value of a, While "a" is a string and consists of the Characters '\0'
23rd Jun 2019, 12:15 PM
Mr. Nothing
Mr. Nothing - avatar
+ 1
No "a" is string and 'a' is character, but it's not enough, I want know more about it
23rd Jun 2019, 12:11 PM
Mr. Nothing
Mr. Nothing - avatar
+ 1
In C 'a' is of character data type,. "a" is a type of string literal. When you will compare 'a' and "a" you will get an error as both are of different data types.
23rd Jun 2019, 3:11 PM
Prashant Kumar
Prashant Kumar - avatar
0
Anna yes sure and sorry , I'm asking about C language..
23rd Jun 2019, 1:00 PM
Mr. Nothing
Mr. Nothing - avatar