Data structures in C and C++