I'm trying the following code. The line with the error is pointed out.
int[] myfunction()
{
{
//regular code
}
catch (Exception ex)
{
return {0,0,0}; //gives error
}
}
How can I return an array literal like string literals?
const
fields. This is not the case with array initialization syntax. – Phocomelia