identifier 'n' is undefined [closed]

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.

Browse More Popular Posts

Leave a Comment