Programming in C - Some doubts