what is this syntax item in C++ and for what it use?
I've just come across this strange C++ syntax:
auto someFunc() -> int{
int a = 42;
return a;
}
i cant find in google what is it, so i try ask it here. thanks for answer!
what is this syntax item in C++ and for what it use?
I've just come across this strange C++ syntax:
auto someFunc() -> int{
int a = 42;
return a;
}
i cant find in google what is it, so i try ask it here. thanks for answer!