- Difference between arrays and pointers?
- What is the purpose of realloc( )?
- What is static memory allocation and dynamic memory allocation?
- How are pointer variables initialized?
- Are pointers integers?
- What is a pointer variable?
- What is a pointer value and address?
- What is a method?
- What are the advantages of the functions?
- What is the purpose of main( ) function?
- What is an argument ? differentiate between formal arguments and actual arguments?
- What is a function and built-in function?
- What is modular programming?
- When does the compiler not implicitly generate the address of the first element of an array?
- What are the characteristics of arrays in C?
- Differentiate between a linker and linkage?
- What are advantages and disadvantages of external storage class?
- Diffenentiate between an internal static and external static variable?
- What are the advantages of auto variables?
- What is storage class and what are storage variable ?
- Which expression always return true? Which always return false?
- Write the equivalent expression for x%8?
- 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?
- What is the difference between text and binary modes?
- How can you restore a redirected standard stream?
- How do you redirect a standard stream?
- How can I search for data in a linked list?
- How can I sort a linked list?
- What is hashing?
- What is the quickest searching method to use?
- What is the easiest searching method to use?
- How can I sort things that are too large to bring into memory?
- What is the quickest sorting method to use?
- What is the easiest sorting method to use?
- What is the benefit of using const for declaring constants?
- Can static variables be declared in a header file?
- What is the difference between declaring a variable and defining a variable?
- Is it acceptable to declare/define a variable in a C header?
- When should a type cast not be used?
- When should a type cast be used?
- How can you determine the maximum value that a numeric variable can hold?
- How reliable are floating-point comparisons?
- Can a variable be both const and volatile?
- when should the volatile modifier be used?
- When should the register modifier be used? Does it really help?
Top 100 C Questions Asked in Actual Interviews
Thanks for the questions!!
Hello shabbir and other webpage administrator, we suggest you can create a C/C++ programming competition where to give us a programming challenges.
Thanks for the questions. Why not give the answers aswell?
Thanks for the questions.It would be more helpful if someone could give the answers.