Qualcomm Interview Question

1. explain static, extern, and volatile 2. can you declare a variable is both static and extern 3. local variable / dynamic allocated memory (malloc) will be put in stack or heap? 4. how to compare the content of two structures (with the same type) 5. what's the difference between structure and class (in c++)