to the member function, so which is faster or i mean, is there any difference at all? ie,
class aclass
{
int data;
}
or
class aclass
{
function()
}
aclass::afunction()
{
int data;
}
so you see(considering they both have afunctin() ), i declared the variable as a member instead, while the other one, i declared it as a local variable to the function, so which is faster above? btw, don't mind about the function being local and would be destroyed etc., i just liked to know if there's a difference or what is faster etc.,
thanks!!!