How to call function of which parameter is reference type

  • Thread starter Thread starter Jeff0803
  • Start date Start date
J

Jeff0803

Guest
There's a char array.

char v[] = {'0','1','2','3','4','5','6','7','8','9','\n',NULL};

And there's a function.

void fr(char& r)
{
char* p = &r;
while (*p)
cout<<*p++;
}
How to call function fr()?

Continue reading...
 
Back
Top