-2

Taking the following example:

void foo(const int foobar);

Is the keyword const meaningful?

nowox
  • 22,446
  • 24
  • 118
  • 241

1 Answers1

0

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

Sourav Ghosh
  • 130,437
  • 16
  • 177
  • 247