C/C++ Questions
* why n++ executes faster than n+1?
* what is a modulus operator? What are the restrictions of a modulus operator?
* What is the difference between a string and an array?
* Is it better to use a pointer to navigate an array of values,or is it better to use a subscripted array name?
* Can the sizeof operator be used to tell the size of an array passed to a function?
* Is using exit() the same as using return?
* Is it possible to execute code even after the program exits the main() function?
* What is a static function?
* Why should I prototype a function?
* How do you print an address?
* Can math operations be performed on a void pointer?
* How can you determine the size of an allocated portion of memory?
* What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
* What is the difference between NULL and NUL?
* What is the heap?
* Can the size of an array be declared at runtime?
* What is the stack?
* When should a far pointer be used?
* What is the difference between far and near?
* Is it better to use malloc() or calloc()?
* Why should we assign NULL to the elements (pointer) after freeing them?
* When would you use a pointer to a function?
* How do you use a pointer to a function?
* Can you add pointers together? Why would you?
* What does it mean when a pointer is used in an if statement?
* Is NULL always defined as 0?
* What is a void pointer?
* What is a null pointer?
* How many levels of pointers can you have?
* What is indirection?
* How do you print only part of a string?
* How can I convert a string to a number?
* How can I convert a number to a string?
* What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
* How can you check to see whether a symbol is defined?
* How do you override a defined macro?
* What is #line used for?
* What is a pragma?
* What are the standard predefined macros?
* How can type-insensitive macros be created?
* How many levels deep can include files be nested?
* Can include files be nested?
* Can you define which header file to include at compile time?
* What is the difference between #include and #include file ?
* Is it better to use a macro or a function?
* How are portions of a program disabled in demo versions?
* What is the benefit of using an enum rather than a #define constant?
* What is the benefit of using #define to declare a constant?
* Can a file other than a .h file be included with #include?
* How can you avoid including a header more than once?
* What will the preprocessor do for a program?
* What is a macro, and how do you use it?
* What is Preprocessor?
* How can I make sure that my program is the only one accessing a file?
* How can I open a file so that other programs can update it at the same time?
* How do you determine whether to use a stream function or a low-level function?



No comments:
Post a Comment