![]() |
List x; and List x();?
Is there any difference between List x; and List x();?
|
Re: List x; and List x();?
if List is class
then meaning of List x is that x is object of class List. meaning of List x() is that x is a function which returns a object type List. |
Re: List x; and List x();?
you can see the following example
Code:
void f()Code:
|
| All times are GMT +5.5. The time now is 13:06. |