C Interview Questions — a practical guide to C interview questions with clear examples you can reuse in real projects.
C Programming Tutorial Series (99/102). Prefer one article? Read the complete C programming tutorial.
Short description
Be ready for undefined behavior, stack vs heap, and string pitfalls.
Sample Q&A
Q: Array vs pointer?
A: Arrays are not pointers, but decay to pointers in most expressions.
Q: malloc vs calloc?
A: calloc zero-initializes and takes count*size.
Q: What is UB?
A: Undefined behavior — e.g., out-of-bounds access.