Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating days between two dates in C
#14
Kalovale Wrote:I think the idea is not to change things unnecessarily. If you have a function that does X, it shouldn't do Y if Y doesn't serve any practical purpose towards X, especially changing global values.

But it's not a global value. It's an argument to the function, passed by value, so the function can do whatever it pleases with it.
Reply


Messages In This Thread
Calculating days between two dates in C - by SaptaZapta - 2011-12-03, 10:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)