disturbed between two versions

  • Thread starter =?ISO-8859-1?Q?Une_b=E9vue?=
  • Start date
K

Keith Thompson

Mark McIntyre said:
Ok, I'll bite. For a weak definition of copy, which doen't necessarily
include the result being identical to the original.

Fair enough.
Bear in mind that it does not necessarily create a copy of the value,
since the value is type-converted en route if required. (6.5.16.1 p2).

(I admit I left the word "strings" out after the word "copy", but then
strings don't exist in C so it seemed reasonable not to leave it
in...)

Here you lost me. What do you mean by "strings don't exist in C"?
There is no string type, but a string is defined in C99 7.1.1p1 as "a
contiguous sequence of characters terminated by and including the
first null character." Strings certainly do exist in C.
 
M

Mark McIntyre

Here you lost me. What do you mean by "strings don't exist in C"?

I meant that there's no string type, unlike in certain other
languages.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,196
Latest member
ScottChare

Latest Threads

Top