Solved

Question

Posted on 2006-07-08
4
290 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks fridom.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
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 pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now