howdy~
i got confused with const when they appear before or after the function head when declare a function, just like this below:
what about the difference between them ?Code:const int func1(const int x) { int temp = x + 1; return temp; } int func2(const int x) const { int temp = x + 1; return temp; }