Performing operations in C