Domanda di colloquio di HCLTech

What is a pointer in C? How do you use them? Explain the difference between malloc() and calloc(). How does a for loop differ from a while loop? What are the differences between struct and union in C? Explain the concept of recursion with an example. How is a stack implemented using arrays in C? What is a function pointer? Provide a use case. What is the difference between a global variable and a static variable in C? How do you handle memory leaks in C?