Re: What is better and why?

Discussion in 'C Programming' started by Jorgen Grahn, Jun 9, 2013.

  1. Jorgen Grahn

    Jorgen Grahn Guest

    On Sun, 2013-06-09, Keith Thompson wrote:
    > "paskali" <> writes:
    >> 1st:
    >>
    >> struct person {
    >> char *name;
    >> char *surname;
    >> };

    >
    > That's my own preference. The type has a name "struct person";
    > I don't feel the need to give it another one.


    Me too. For the same reason:

    > My own opinion is
    > that making the fact that it's a struct explicit is a good idea --
    > unless it's an opaque type such that code should use it without
    > knowing that it's a struct


    /Jorgen

    --
    // Jorgen Grahn <grahn@ Oo o. . .
    \X/ snipabacken.se> O o .
    Jorgen Grahn, Jun 9, 2013
    #1
    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. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    855
    Mark Rae
    Dec 21, 2006
  2. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,753
    Smokey Grindel
    Dec 2, 2006
  3. Peter Bencsik
    Replies:
    2
    Views:
    811
  4. Andrew Thompson
    Replies:
    8
    Views:
    134
    Premshree Pillai
    Jun 7, 2005
  5. Replies:
    2
    Views:
    42
    Mark H Harris
    May 13, 2014
Loading...

Share This Page