In C++11, a function must specify its return type in one of the following two ways: int aFunction(int arg) { return arg * 2; } (or) auto aFunction(int arg) -> int { return arg * 2; } The first is the classic function definition syntax. The second form was introduced in […]
Recent Comments