Miscellaneous

20. Miscellaneous

20.1How can I returnmultiplevalues from a function?

20.3How do I access command-line arguments?

20.5How can I write data files which can be read on other machineswith differentdataformats?

20.6How can I call a function, given its name as a string?

20.8How can I implement sets or arrays of bits?

20.9How can I determine whether a machine'sbyte orderis big-endian or little-endian?

20.10How can I convert integers tobinary orhexadecimal?

20.11Can I use base-2 constants(something like 0b101010)?
Is there a printf format for binary?

20.12What is the most efficient way to count the number of bitswhich are set in a value?

20.13How can I make my code more efficient?

20.14Are pointers really faster than arrays?How much do function calls slow things down?

20.17Is there a way to switch on strings?

20.18Is there a way to have non-constant case labels (i.e. ranges or arbitrary expressions)?

20.19Are the outer parenthesesin return statements really optional?

20.20Why don't C comments nest?Aretheylegal inside quoted strings?

20.24Why doesn't C have nested functions?

20.25How can I call FORTRAN(C++, BASIC, Pascal,Ada, LISP) functions from C?

20.26Does anyone know of a programfor convertingPascal or FORTRANto C?

20.27Can I use a C++ compiler to compile C code?

20.28I needto comparetwo strings for close, but not necessarily exact, equality.

20.29What is hashing?

20.31How can I find the day of the week given the date?

20.32Will 2000 be a leap year?

20.34Howdo you write a program which produces its own source code as its output?

20.35What is ``Duff's Device''?

20.36When will the nextObfuscated C Code Contestbe held?How can I get a copy ofpreviouswinning entries?

20.37What was the entry keyword mentioned in K&R1?

20.38Where does the name ``C'' come from, anyway?

20.39How do you pronounce ``char''?

20.40Where can I get extra copies of this list?


top