I’m declaring and assigning an integer variable to get the array size but its showing error
My statement-:
int n=sizeof(arr[]);
Error-:
source.cpp: In function ‘int Solve(int*)’:
source.cpp:7:23: error: expected primary-expression before ‘]’ token
7 | int n=sizeof(arr[]);int c=0;int max=0;int j;
|