[Solved] identifier ‘n’ is undefined [closed]

[ad_1]

At the beginning you must declare the variable :

int array[100], beg, mid, end, i, num, n;

N is the only variable that you don’t declare but use.

[ad_2]

solved identifier ‘n’ is undefined [closed]