C Interview Questions

Labels: , , , |

1. How would you find out if one of the pointers in a linked list is corrupted ?
2. Write a C program to insert nodes into a linked list in a sorted fashion
3. How to read a singly linked list backwards?
4. How do you convert a tree into an array?
5. What is a void pointer? Why can't we perform arithmetic on a void *
6. What do Segmentation fault, access violation, core dump and Bus error ?
7. What is the difference between an array of pointers and a pointer to an array?
8. What is a memory leak?
9. What is the difference between malloc() and calloc?
10. What is the difference between pointers and array ?
11. How many different trees can be constructed using n nodes have ?
12. How will you reverse linked list? Write a C program to do the same.
13. how do you delete a link list?
14. what is heap sort?
15. Give pseudocode for the mergesort algorithm
16. How to declare a structure of a linked list?
17. What is a NULL pointer? How is it different from an unitialized pointer?
18. What is a null pointer assignment error?
19. Does extern in a function declaration mean anything?
20. Does C support function overloading?

You can give answers in Comments...

0 comments: