Fastest and most efficient solution for C language
Intuition\nThe fastest and most efficient way to solve this problem in C language.\n\n# Code\nc []\nint areaOfMaxDiagonal(int** dimensions, int dimensionsSize, 
# Intuition\nThe fastest and most efficient way to solve this problem in C language.\n\n# Code\n```c []\nint areaOfMaxDiagonal(int** dimensions, int dimensionsSize, int* dimensionsColSize) {\n    int i,area,max=0;\n    float maxDiagonal=sqrt((dimensions[0][0]*dimensions[0][0])+(dimensions[0][1]*dimensions[0][1]));\n    for(i=1;i<dimensionsSize;i++) {\n        if(sqrt((dimensions[i][0]*dimensions[i][0])+(dimensions[i][1]*dimensions[i][1]))>maxDiagonal) {\n            maxDiagonal=sqrt((dimensions[i][0]*dimensions[i][0])+(dimensions[i][1]*dimensions[i][1]));\n            max=i;\n        }\n        else if(sqrt((dimensions[i][0]*dimensions[i][0])+(dimensions[i][1]*dimensions[i][1]))==maxDiagonal) {\n            if((dimensions[i][0]*dimensions[i][1])>(dimensions[max][0]*dimensions[max][1])) {\n                maxDiagonal=sqrt((dimensions[i][0]*dimensions[i][0])+(dimensions[i][1]*dimensions[i][1]));\n                max=i;\n            }\n        }\n    }\n    area=dimensions[max][0]*dimensions[max][1];\n    return area;\n}\n```
['Array', 'C']