• C

Question

Question: There is no difference between how C interprets 'x' and "X". Answer is FALSE.

WHY?
LVL 3
dandeliondreamAsked:
Who is Participating?
 
fridomConnect With a Mentor CEO/ProgrammerCommented:
There is a fundamental difference:
'x' is  char
"x" is a "string" correctly a field of chars and looks like this [x, '\0#]

So they completly different. Trying to hand over a char* instead of a char will give you
another idea about that.

Regards
Friedrich
0
 
dandeliondreamAuthor Commented:
sorry i mean...

There is no difference between how C interprets 'x' and "x".  Why?
0
 
cupCommented:
It is easy to get confused about this if you come from a HTML, Javascript or Fortran background where primes ' and quotes " mean the same thing.
0
 
dandeliondreamAuthor Commented:
Thanks fridom.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.