Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

difference between structure and string?

0 views
Skip to first unread message

suaib

unread,
Mar 31, 2010, 6:28:06 AM3/31/10
to
hhh

Dr Malcolm McLean

unread,
Mar 31, 2010, 6:38:47 AM3/31/10
to
On 31 Mar, 11:28, suaib <suaib.j...@gmail.com> wrote:
> hhh
>
It's a bit of a silly question. Apart from the fact that both are
types of data in the C programming language, structures and strings
don't have much in common.
It's a bit like "list the points of difference between a hawk and a
handsaw".

Morris Keesan

unread,
Mar 31, 2010, 4:15:45 PM3/31/10
to

Which direction is the wind?

--
Morris Keesan -- mke...@post.harvard.edu

Moi

unread,
Mar 31, 2010, 4:28:18 PM3/31/10
to

What, The European handsaw, or the African handsaw ?

AvK

Kenneth Brody

unread,
Apr 2, 2010, 4:35:58 PM4/2/10
to

You can create a struct with strings, and you can deconstruct a hawk with a
handsaw.

--
Kenneth Brody

Nick Keighley

unread,
Apr 6, 2010, 11:09:14 AM4/6/10
to
please include your question in the body of your post
"difference between structure and string?"

On 31 Mar, 11:28, suaib <suaib.j...@gmail.com> wrote:
> hhh

what does "hhh" mean?

what led you to ask this rather odd question? Is it homework? (a
question asked as part of a course of instruction (and in *this* case
to detect if you were actually awake during the lecture)). What do
your course notes or textbook say?

But anyway...
a structure is a collection of data types which, in general, are
different
a string is a contiguous array of characters. Or in C's case an array
of chars terminated by a null character.

0 new messages