difference between structure and string?

Discussion in 'C Programming' started by suaib, Mar 31, 2010.

  1. suaib

    suaib Guest

    hhh
     
    suaib, Mar 31, 2010
    #1
    1. Advertising

  2. On 31 Mar, 11:28, suaib <> 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".
     
    Dr Malcolm McLean, Mar 31, 2010
    #2
    1. Advertising

  3. On Wed, 31 Mar 2010 06:38:47 -0400, Dr Malcolm McLean
    <> wrote:

    > On 31 Mar, 11:28, suaib <> 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".


    Which direction is the wind?

    --
    Morris Keesan --
     
    Morris Keesan, Mar 31, 2010
    #3
  4. suaib

    Moi Guest

    On Wed, 31 Mar 2010 03:38:47 -0700, Dr Malcolm McLean wrote:

    > On 31 Mar, 11:28, suaib <> 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".


    What, The European handsaw, or the African handsaw ?

    AvK
     
    Moi, Mar 31, 2010
    #4
  5. please include your question in the body of your post
    "difference between structure and string?"

    On 31 Mar, 11:28, suaib <> 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.
     
    Nick Keighley, Apr 6, 2010
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jakk
    Replies:
    4
    Views:
    12,495
  2. Shea Martin
    Replies:
    11
    Views:
    14,039
    DeltaOne
    Jun 5, 2005
  3. Leo Nunez
    Replies:
    3
    Views:
    1,276
    Neil Kurzman
    Feb 9, 2005
  4. Replies:
    9
    Views:
    25,490
    Lal Bahadur Singh
    Nov 11, 2011
  5. manish sahu
    Replies:
    5
    Views:
    5,200
    James Kanze
    Feb 14, 2008
Loading...

Share This Page