I The C Language


II Variables and Data Storage

II.1: Where in memory are my variables stored?

II.2: Do variables need to be initialized?

II.3: What is page thrashing?

II.4: What is a const pointer?

II.5: When should the register modifier be used? Does it really help?

II.6: When should the volatile modifier be used?

II.7: Can a variable be both const and volatile ?

II.8: When should the const modifier be used?

II.9: How reliable are floating-point comparisons?

II.10: How can you determine the maximum value that a numeric variable can hold?

II.11: Are there any problems with performing mathematical operations on different variable types?

II.12: What is operator promotion?

II.13: When should a type cast be used?

II.14: When should a type cast not be used?

II.15: Is it acceptable to declare/define a variable in a C header?

II.16: What is the difference between declaring a variable and defining a variable?

II.17: Can static variables be declared in a header file?

II.18: What is the benefit of using const for declaring constants?


III Sorting and Searching Data

III.1: What is the easiest sorting method to use?

III.2: What is the quickest sorting method to use?

III.3: How can I sort things that are too large to bring into memory?

III.4: What is the easiest searching method to use?

III.5: What is the quickest searching method to use?

III.6: What is hashing?

III.7: How can I sort a linked list

III.8: How can I search for data in a linked list?

IV Data Files

IV.1: If errno contains a nonzero number, is there an error?

IV.2: What is a stream?

IV.3: How do you redirect a standard stream?

IV.4: How can you restore a redirected standard stream?

IV.5: Can stdout be forced to print somewhere other than the screen?

IV.6: What is the difference between text and binary modes?

IV.7: How do you determine whether to use a stream function or a low-level function?

IV.8: How do you list files in a directory?

IV.9: How do you list a file's date and time?

IV.10: How do you sort filenames in a directory?

IV.11: How do you determine a file's attributes?

IV.12: How do you view the PATH?

IV.13: How can I open a file so that other programs can update it at the same time?

IV.14: How can I make sure that my program is the only one accessing a file?

IV.15: How can I prevent another program from modifying part of a file that I am modifying?

IV.16: How can I have more than 20 files open at once?

IV.17: How can I avoid the Abort, Retry, Fail messages?

IV.18: How can I read and write comma-delimited text?

V Working with the Preprocessor

V.1: What is a macro, and how do you use it?

V.2: What will the preprocessor do for a program?

V.3: How can you avoid including a header more than once?

V.4: Can a file other than a .h file be included with #include ?

V.5: What is the benefit of using #define to declare a constant?

V.6: What is the benefit of using enum to declare a constant?

V.7: What is the benefit of using an enum rather than a #define constant?

V.8: How are portions of a program disabled in demo versions?

V.9: When should you use a macro rather than a function?

V.10: Is it better to use a macro or a function?

V.11: What is the best way to comment out a section of code that contains comments?

V.12: What is the difference between #include <file2> and #include "file" ?

V.13: Can you define which header file to include at compile time?

V.14: Can include files be nested?

V.15: How many levels deep can include files be nested?

V.16: What is the concatenation operator?

V.17: How can type-insensitive macros be created?

V.18: What are the standard predefined macros?

V.19: How can a program be made to print the line number where an error occurs?

V.20: How can a program be made to print the name of a source file where an error occurs?

V.21: How can you tell whether a program was compiled using C versus C++?

V.22: What is a pragma?

V.23: What is #line used for?

V.24: What is the _ _FILE_ _ preprocessor command?

V.25: How can I print the name of the source file in a program?

V.26: What is the _ _LINE_ _ preprocessor command?

V.27: How can I print the current line number of the source file in a program?

V.28: What are the _ _DATE_ _ and _ _TIME_ _ pre-processor commands?

V.29: How can I print the compile date and time in a program?

V.30: How can you be sure that a program follows the ANSI C standard?

V.31: How do you override a defined macro?

V.32: How can you check to see whether a symbol is defined?

V.33: What common macros are available?

VI Working with Strings

VI.1: What is the difference between a string copy (strcpy) and a memory copy (memcpy)?

And when should each be used?

VI.2: How can I remove the trailing spaces from a string?

VI.3: How can I remove the leading spaces from a string?

VI.4: How can I right-justify a string?

VI.5: How can I pad a string to a known length?

VI.6: How can I copy just a portion of a string?

VI.7: How can I convert a number to a string?

VI.8: How can I convert a string to a number?

VI.9: How do you print only part of a string?

VI.10: How do you remove spaces from the end of a string?

VI.11: How can you tell whether two strings are the same?

 
Online Advertising Top Blogs Computers