Alright, I'll admit, I'm somewhat anal retentive when it comes to optimizing my code and getting it to run fast without using more memory than it must, but I don't see that as a bad thing Anyway, I was wondering if anyone knows which would run faster (excuse the vague code, it's just meant as an example)
Now, which b() is faster?Code:int a() { return(42); }
orCode:int b() { int temp; temp=a(); c(temp); }
I'm guessing that the second one is, but I'm not sure, and I don't know exactly how the compiler changes the code around for optimizations and such... thanks.Code:int b() { c(a()); }