Hi,
what's the keyword auto for? The book only mention that we can include it with automatic variable but did not tell what's the advantage of including it? And it seem that I still need to explicitly initialize variable count(so it doesn't contain garbage). So may be it should be something like this instead?
Can someone please explain to me?
Code:
void func1(int y)
{
auto int count;
}
Code:
void func1(int y)
{
auto int count=0;
}
Can someone please explain to me?