Need help on pointers

i want explanation of question 4 and 8

Hello @anupanu23,

  1. Ques:4
    memory leak occurs when programmers create a memory in heap and forget to delete it.
    In this program, after executing the following code the compiler will lose access to the memory assigned at run time using malloc()
    So, this leads to a memory leak.

    Computers crash because of errors in the operating system (OS) software or errors in the computer hardware.

  2. Ques:8
    k is a void pointer and the C++ standard doesn’t allow pointer arithmetic with void pointers.
    So, doing k++ will generate an error.
    Thus, the program will not compile successfully.

Hope, this would help.
Give a like, if you are satisfied.