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
Solved

Question

Posted on 2006-07-08
4
317 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
  • 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 50 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

790 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