Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Question

Posted on 2006-07-08
4
Medium Priority
?
338 Views
Last Modified: 2012-05-05
Question: There is no difference between how C interprets 'x' and "X". Answer is FALSE.

WHY?
0
Comment
Question by:dandeliondream
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Author Comment

by:dandeliondream
ID: 17067082
sorry i mean...

There is no difference between how C interprets 'x' and "x".  Why?
0
 
LVL 24

Accepted Solution

by:
fridom earned 200 total points
ID: 17067091
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
 
LVL 11

Expert Comment

by:cup
ID: 17067144
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
 
LVL 3

Author Comment

by:dandeliondream
ID: 17067280
Thanks fridom.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question