-2

Taking the following example:

void foo(const int foobar);

Is the keyword const meaningful?

nowox
  • 25,978
  • 39
  • 143
  • 293

1 Answers1

0

Yes, obviously. Your function foo() will not be able to modify the value foobar inside the function.

Sourav Ghosh
  • 133,132
  • 16
  • 183
  • 261