473,396 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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://pr*************@blogspot.com
Nov 14 '05 #1
9 1120

"Prashanth Ellina" <pr*************@gmail.com> wrote in message
news:28*************************@posting.google.co m...
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
Nov 14 '05 #2
On 12 Jun 2004 09:20:08 -0700, pr*************@gmail.com (Prashanth
Ellina) wrote in comp.lang.c:
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://pr*************@blogspot.com


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.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 14 '05 #3
Jack Klein <ja*******@spamcop.net> wrote in message news:<h3********************************@4ax.com>. ..
On 12 Jun 2004 09:20:08 -0700, pr*************@gmail.com (Prashanth
Ellina) wrote in comp.lang.c:

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


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.
Nov 14 '05 #4

On Sat, 12 Jun 2004, Prashanth Ellina wrote:

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
Nov 14 '05 #5

"Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> wrote in message

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.
Nov 14 '05 #6
"Arthur J. O'Dwyer" wrote:
On Sat, 12 Jun 2004, Prashanth Ellina wrote:

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.


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.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #7
"Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> wrote in message news:<Pi**********************************@unix49. andrew.cmu.edu>...
On Sat, 12 Jun 2004, Prashanth Ellina wrote:

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

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
Nov 14 '05 #8
here are some nice questions

http://www.programmersheaven.com/art...k/article2.htm

--
test
Nov 14 '05 #9
On Sat, 12 Jun 2004, Prashanth Ellina wrote:
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.
Regards,
Prashanth Ellina

I blog at http://pr*************@blogspot.com


--
Send e-mail to: darrell at cs dot toronto dot edu
Don't send e-mail to vi************@whitehouse.gov
Nov 14 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

47
by: Mountain Bikn' Guy | last post by:
Take some standard code such as shown below. It simply loops to add up a series of terms and it produces the correct result. // sum numbers with a loop public int DoSumLooping(int iterations) {...
16
by: Dan | last post by:
I'm not interested in opening up a debate between C# and C++.NET, just curious if anyone has a feel for how many current jobs are C# vs. how many want C++.NET. I'm learning .NET, and want to focus...
16
by: Alvin Bruney | last post by:
I've heard talk that a Beta for this product is out or slated for end of year to replace HTML from Microsoft. Can anybody confirm? I'd really like to get in on the alpha...so I can write a book...
25
by: Alvin Bruney | last post by:
C# is great but it does have some short comings. Here, I examine one of them which I definitely think is a shortcoming. Coming from C++, there seems to be no equivalent in C# to separate code...
5
by: Alvin Bruney | last post by:
I dispensed some advice and its bugging me that it may not be 100% accurate. Worker threads should not touch main thread objects. Everybody knows that but if you pass a reference to a form object...
8
by: Mark | last post by:
Is there a point when the size of a asp.net web project is too big ... and it really should be broken down into multiple projects? For example, there is a significant difference in .dll size...
9
by: Eric George | last post by:
Hi, Has anyone had any success using jscript submit method in their VS.NET projects? For example I have some client processing in a script function then call <form name>.submit(); This won't...
7
by: [Gauthier] | last post by:
Hello, I've a simple question: On a server that run multiple asp.net HttpApplication, is there any way with the asp.net framework to exchange data between different application? I basically...
5
by: TJS | last post by:
trying to display pdf file in browser fails on this line: Response.ContentType = "application/pdf" getting an error about no declaration found for "response" what declaration is needed ???
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.