0

Why does the compiler give an error for the below declaration

void fun(int a = 10,int b);

I stumbled upon this post. But I am still not sure why the C++ compiler puts this restriction.

Community
  • 1
  • 1
Rohit Walavalkar
  • 790
  • 9
  • 28

0 Answers0