Synopsys Interview Question

What is memory leak ? How OS knows about memory leak? what is dangling pointer? what is malloc? why malloc gives error when memory leak? what is the code of segmentation fault?