Tech Mahindra Interview Question

all basics and in depth in c