🚀
Q1. What is volatile?
A. Prevents compiler optimization for variables.
Advanced
🚀
Q2. What is memory leak?
A. Memory allocated but not freed.
Advanced
🚀
Q3. What is dangling pointer?
A. Pointer pointing to freed memory.
Advanced
🚀
Q4. What is buffer overflow?
A. Writing beyond allocated memory.
Advanced
🚀
Q5. What is segmentation fault?
A. Accessing invalid memory location.
Advanced
🚀
Q6. What is function pointer?
A. Pointer that stores address of a function.
Advanced
🚀
Q7. Difference between memcpy and memmove?
A. memcpy fails in overlap, memmove handles overlap safely.
Advanced
🚀
Q8. What is inline function?
A. Function expanded at compile time.
Advanced
🚀
Q9. What is typedef?
A. Used to create alias names for data types.
Advanced
🚀
Q10. What is multi-threading in C?
A. Executing multiple threads using libraries like pthread.
Advanced
🚀
Q11. What is strict aliasing?
A. Rules defining how pointers can access memory.
Advanced