Relative Content

Tag Archive for cconstantsreturn-type

What does returning a const do in C?

There is a similar question about C++ but it doesn’t quite seem to apply here in C. I’m making a function to calculate octal tree intersections, and I made the arguments const. However, sometimes one of the arguments is returned directly, and so the compile asks that I add the const qualifier to the return type…