Pergunta de entrevista da empresa Arista Networks

onsite question is: design a stack used by multiple users. Any datatype could be pushed into the stack including self defined struct. only In C. How to do error handling in C compared to C++. How to handle memory leak if the stack method failed.

Resposta da entrevista

Sigiloso

22 de mai. de 2012

The answer they are looking for is simple interface and OOD in C(!) Any reference & as parameter or ** in stack method will make him angry. Try to package all using C as neat as you can.