c and data structure for studying!