difference between structure and string?

D

Dr Malcolm McLean

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".
 
M

Morris Keesan

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".

Which direction is the wind?
 
M

Moi

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".

What, The European handsaw, or the African handsaw ?

AvK
 
N

Nick Keighley

please include your question in the body of your post
"difference between structure and string?"


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.
 

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

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top