Doubts in mcq of pointers

Q2 what will be the best solution as all the options are right…
Q4 memory leak is definitely right, but option C is also a probable situation
Q8 why will the code not compile because j and k will point to some address in the memory

Refer this for Q4. MCQ Pointers Question
For Q2 and Q8 read this article https://www.geeksforgeeks.org/void-pointer-c-cpp/

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.