I'm quite unexperienced at C, and have a few questions.
First, I've written a program that calculates Pi in a simple (and rather idiotic) way, with different levels of optimisation, and I want to clock each method to see how much faster each is. How do I go about this? (C++ specific methods are just fine too)
I'm also a bit unsure about strings and arrays, but I'll first look up some tutorials and the such. (EDIT) Yes, I've another question: When I want to make a pointer that points to an array of 3 ints, and access it, would this be valid?:
unsigned int *Arrayptr;
Arrayptr=(unsigned int *)malloc(sizeof(int)*3);
Thanks for hearing me out.