I am working in C++ (not C++/CLI) in Visual Studio 2012.
I don\'t understand why this code works, I would have expected it to fail
You have used the , i.e. comma operator
,
return () is valid.
return ()
and so is return (/*valid evaluation*/)
return (/*valid evaluation*/)
Comma operator returns the last value i.e 40
40