C tidbits

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Prashanth Ellina

    #1

    C tidbits

    Hi,

    I need to conduct a 'C' language quizzing session in my class. Does
    anyone know where I can learn about obscure features in C and other
    such "tid-bits" ?

    Regards,
    Prashanth Ellina

    I blog at http://prashanthellina@blogspot.com
  • Mike Wahler

    #2
    Re: C tidbits


    "Prashanth Ellina" <prashanthellin a@gmail.com> wrote in message
    news:281962dd.0 406120820.83f50 13@posting.goog le.com...[color=blue]
    > Hi,
    >
    > I need to conduct a 'C' language quizzing session in my class. Does
    > anyone know where I can learn about obscure features in C and other
    > such "tid-bits" ?[/color]

    Were that my quest, I'd start looking in C textbooks and
    the C standard. (the standard defines the entire language
    and standard library, so it would have every 'obscure'
    feature there is). You can obtain the C standard in
    ..PDF format for $18 US, from http://webstore.ansi.org
    (Search for "9899")

    -Mike


    Comment

    • Jack Klein

      #3
      Re: C tidbits

      On 12 Jun 2004 09:20:08 -0700, prashanthellina @gmail.com (Prashanth
      Ellina) wrote in comp.lang.c:
      [color=blue]
      > Hi,
      >
      > I need to conduct a 'C' language quizzing session in my class. Does
      > anyone know where I can learn about obscure features in C and other
      > such "tid-bits" ?
      >
      > Regards,
      > Prashanth Ellina
      >
      > I blog at http://prashanthellina@blogspot.com[/color]

      The FAQ for this newsgroup provides questions and answers about many
      common mistakes often made by newbies and sometimes no-so-newbies.
      Many of these are caused by features of C that are not intuitively
      obvious, if not necessarily obscure. You could look at the abridged
      version available on the web at the address in my signature block.

      --
      Jack Klein
      Home: http://JK-Technology.Com
      FAQs for
      comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
      comp.lang.c++ http://www.parashift.com/c++-faq-lite/
      alt.comp.lang.l earn.c-c++

      Comment

      • Prashanth Ellina

        #4
        Re: C tidbits

        Jack Klein <jackklein@spam cop.net> wrote in message news:<h3hmc0lgf 93ndte2injvi7b4 4ib9iic92u@4ax. com>...[color=blue]
        > On 12 Jun 2004 09:20:08 -0700, prashanthellina @gmail.com (Prashanth
        > Ellina) wrote in comp.lang.c:[color=green]
        > >
        > > I need to conduct a 'C' language quizzing session in my class. Does
        > > anyone know where I can learn about obscure features in C and other
        > > such "tid-bits" ?[/color]
        >
        > The FAQ for this newsgroup provides questions and answers about many
        > common mistakes often made by newbies and sometimes no-so-newbies.
        > Many of these are caused by features of C that are not intuitively
        > obvious, if not necessarily obscure. You could look at the abridged
        > version available on the web at the address in my signature block.[/color]

        Thanks. Will try that.

        Comment

        • Arthur J. O'Dwyer

          #5
          Re: C tidbits


          On Sat, 12 Jun 2004, Prashanth Ellina wrote:[color=blue]
          >
          > I need to conduct a 'C' language quizzing session in my class. Does
          > anyone know where I can learn about obscure features in C and other
          > such "tid-bits" ?[/color]

          I suppose it would be forward to suggest that someone who doesn't
          know a subject has no business teaching it, let alone "quizzing"
          about it? IMO if you can't teach C through your own resources, you
          ought to teach something else. And learn C, of course, but trying
          to teach *and* learn at the same time rarely works.
          Also, "obscure features" are not some kind of Teacher's Edition C.
          Keep away from them; trying to "quiz" the quirks of C will not only
          get you laughed at by your smarter students, it will produce yet
          another influx of the less-smart ones in forums like this one asking
          "what is the size of int?" and "how do I sort an array without using
          the equals operator?"

          -Arthur,
          glad not to be studying there

          Comment

          • Malcolm

            #6
            Re: C tidbits


            "Arthur J. O'Dwyer" <ajo@nospam.and rew.cmu.edu> wrote in message[color=blue]
            >
            > Keep away from them; trying to "quiz" the quirks of C will not
            > only get you laughed at by your smarter students, it will produce
            > yet another influx of the less-smart ones in forums like this one
            > asking "what is the size of int?" and "how do I sort an array
            > without using the equals operator?"
            >[/color]
            I'd agree that this does sound rather a bad test. You can dredge the
            standard for exotica, and whilst a certain type of rather good programmer
            will do well (the standards lawyer), its questionable whether for the
            majority you are actually examining anything useful. Then if you are not
            comfortable with the standard yourself, there's always the risk of asking a
            flawed question.

            C has two related problems. It is quite hard to write completely compliant
            portable programs, and it is possible to write "portable enough" programs,
            which are portable for most practical purposes but will break on the more
            exotic platforms.

            This is a useful area in which to focus the quiz, as long as you teach
            portability and tell the students that you intend to test it.


            Comment

            • CBFalconer

              #7
              Re: C tidbits

              "Arthur J. O'Dwyer" wrote:[color=blue]
              > On Sat, 12 Jun 2004, Prashanth Ellina wrote:[color=green]
              >>
              >> I need to conduct a 'C' language quizzing session in my class.
              >> Does anyone know where I can learn about obscure features in C
              >> and other such "tid-bits" ?[/color]
              >
              > I suppose it would be forward to suggest that someone who
              > doesn't know a subject has no business teaching it, let alone
              > "quizzing" about it? IMO if you can't teach C through your
              > own resources, you ought to teach something else. And learn C,
              > of course, but trying to teach *and* learn at the same time
              > rarely works.[/color]

              I have to disagree here. The best teachers are often those who
              have just learned the subject, from a knowledgeable source (not
              some hack). They are then highly aware of the stumbling blocks
              for the newbies, and can address them. Eventually those stumbling
              blocks become background knowledge, needing no explanation.
              [color=blue]
              >
              > Also, "obscure features" are not some kind of Teacher's Edition
              > C. Keep away from them; trying to "quiz" the quirks of C will not
              > only get you laughed at by your smarter students, it will produce
              > yet another influx of the less-smart ones in forums like this one
              > asking "what is the size of int?" and "how do I sort an array
              > without using the equals operator?"[/color]

              Full agreement here. Obscure features are really not features,
              but rather non-obvious consequences of the rules.

              --
              Chuck F (cbfalconer@yah oo.com) (cbfalconer@wor ldnet.att.net)
              Available for consulting/temporary embedded and systems.
              <http://cbfalconer.home .att.net> USE worldnet address!


              Comment

              • Prashanth Ellina

                #8
                Re: C tidbits

                "Arthur J. O'Dwyer" <ajo@nospam.and rew.cmu.edu> wrote in message news:<Pine.LNX. 4.58-035.04061217570 60.5253@unix49. andrew.cmu.edu> ...[color=blue]
                > On Sat, 12 Jun 2004, Prashanth Ellina wrote:[color=green]
                > >
                > > I need to conduct a 'C' language quizzing session in my class. Does
                > > anyone know where I can learn about obscure features in C and other
                > > such "tid-bits" ?[/color]
                >
                > I suppose it would be forward to suggest that someone who doesn't
                > know a subject has no business teaching it, let alone "quizzing"
                > about it? IMO if you can't teach C through your own resources, you
                > ought to teach something else. And learn C, of course, but trying
                > to teach *and* learn at the same time rarely works.
                > Also, "obscure features" are not some kind of Teacher's Edition C.
                > Keep away from them; trying to "quiz" the quirks of C will not only
                > get you laughed at by your smarter students, it will produce yet
                > another influx of the less-smart ones in forums like this one asking
                > "what is the size of int?" and "how do I sort an array without using
                > the equals operator?"
                >
                > -Arthur,
                > glad not to be studying there[/color]


                Guys, I did not say that I'm a teacher! I am an undergrad and am
                looking for "tid-bits" about C to have "fun" quizzing sessions in
                class when the Prof takes a snooze!

                laughing his ass out :) ,
                Prashanth Ellina

                Comment

                • Martin Johansen

                  #9
                  Re: C tidbits

                  here are some nice questions



                  --
                  test

                  Comment

                  • Darrell Grainger

                    #10
                    Re: C tidbits

                    On Sat, 12 Jun 2004, Prashanth Ellina wrote:
                    [color=blue]
                    > Hi,
                    >
                    > I need to conduct a 'C' language quizzing session in my class. Does
                    > anyone know where I can learn about obscure features in C and other
                    > such "tid-bits" ?[/color]

                    Focusing on obscure features is not really the best use of your time. They
                    are obscure for a reason. What you should be focusing on are common
                    mistakes and how to avoid them.

                    Someone has already suggested the FAQ for comp.lang.c. I'd like to add
                    that C Traps and Pitfalls by Andrew Koenig is a good book related to this
                    topic.
                    [color=blue]
                    > Regards,
                    > Prashanth Ellina
                    >
                    > I blog at http://prashanthellina@blogspot.com
                    >[/color]

                    --
                    Send e-mail to: darrell at cs dot toronto dot edu
                    Don't send e-mail to vice.president@ whitehouse.gov

                    Comment

                    Working...