S
Sundar
Do we have something called a const function ? I thought applying the
'const' specifier to a function is meaningless... but when i tried
defining a const function it worked !!
like...
const int func(int a)
{
int b;
.....
return b;
}
...The above code gave no compilation errors ! :->
How should i interpret it ?
(i used MS- vc++ compiler)
Sundar
'const' specifier to a function is meaningless... but when i tried
defining a const function it worked !!
like...
const int func(int a)
{
int b;
.....
return b;
}
...The above code gave no compilation errors ! :->
How should i interpret it ?
(i used MS- vc++ compiler)
Sundar