C tidbits

P

Prashanth Ellina

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://[email protected]
 
M

Mike Wahler

Prashanth Ellina said:
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" ?

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
 
J

Jack Klein

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://[email protected]

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

Prashanth Ellina

Jack Klein said:
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.

Thanks. Will try that.
 
A

Arthur J. O'Dwyer

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

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
 
M

Malcolm

Arthur J. O'Dwyer said:
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?"
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.
 
C

CBFalconer

Arthur J. O'Dwyer said:
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.

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

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

Prashanth Ellina

Arthur J. O'Dwyer said:
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


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
 
D

Darrell Grainger

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

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.
 

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

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top