I want to use two dimensional array on realview compiler with type A[n][10] where n is an variable of type unsigned char. but it show an error.
That's because you cannot do that. Arrays must have a predefined size during compilation, unless constructed at runtime using dynamic memory allocation. Please have a look at a fundamental C programming language study book.
my code example is unsigned char n; unsigned char A[n][10]; function { n =5; A[1][0] = 2; A[1] [1] = 4; }
View all questions in Keil forum