Cisco interview question

Write code to reverse a link list. Tell the different between malloc and calloc